-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yaml
48 lines (45 loc) · 1 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '3.7'
services:
mysql:
image: mysql:5.7
env_file:
- env.mysql
volumes:
- type: volume
source: mysql-data
target: /var/lib/mysql
read_only: false
- type: bind
source: ./volumes/docker-entrypoint-initdb.d
target: /docker-entrypoint-initdb.d
read_only: true
logging:
driver: json-file
options:
max-size: 20m
max-file: "30"
yourls:
# replace "image" with "build" for developing purpose
# build: ./Dockerfile
#
# or even more integrated with theme Sleeky
# image: guessi/docker-yourls:1.9.2-theme
#
# or with "x.y.z-noadmin" for production environment
# image: guessi/docker-yourls:1.9.2-noadmin
image: guessi/docker-yourls:1.9.2
links:
- mysql:mysql
env_file:
- env.yourls
ports:
- 80:80
depends_on:
- mysql
logging:
driver: json-file
options:
max-size: 20m
max-file: "30"
volumes:
mysql-data: