-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yml
52 lines (46 loc) · 1.1 KB
/
docker-compose.yml
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
49
50
51
52
volumes:
keymaterial:
secrets:
mysql-root-password:
file: docker/secrets/mysql-root-password
mysql-password:
file: docker/secrets/mysql-password
admin-password:
file: docker/secrets/admin-password
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mysql-root-password
MYSQL_PASSWORD_FILE: /run/secrets/mysql-password
MYSQL_USER: "coveryourtracks"
MYSQL_DATABASE: "coveryourtracks"
volumes:
- ./examples/sql:/docker-entrypoint-initdb.d
secrets:
- mysql-root-password
- mysql-password
app:
build: .
volumes:
- .:/opt
- keymaterial:/tmp
secrets:
- mysql-password
- admin-password
cron:
build: .
entrypoint: []
command: bash -c 'touch /etc/crontab && cron -f'
volumes:
- keymaterial:/tmp
secrets:
- admin-password
nginx:
image: nginx
volumes:
- ./examples/nginx/extra:/etc/nginx/extra
- ./examples/nginx/conf.d:/etc/nginx/conf.d
ports:
- "443:443"