-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_demo.yml
103 lines (93 loc) · 2.1 KB
/
docker-compose_demo.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
networks:
frontend:
ipam:
config:
- subnet: 172.20.0.0/24
services:
mariadb:
image: "mariadb"
networks:
frontend:
ipv4_address: 172.20.0.2
volumes:
- type: bind
source: demo\db
target: /var/lib/mysql
ports:
- "12345:3306"
restart: always
env_file: "settings_demo.env"
command: 'mariadbd --skip_ssl --innodb-flush-method=fsync'
qc_process:
networks:
frontend:
ipv4_address: 172.20.0.3
build:
context: .
dockerfile: ./setup/Dockerfile
target: process
volumes:
- type: bind
source: demo\config
target: /config
- type: bind
source: demo\data
target: /data
depends_on:
- mariadb
restart: always
env_file: "settings_demo.env"
command: '/setup/cron_with_env.sh'
qc_shiny:
networks:
frontend:
ipv4_address: 172.20.0.4
build:
context: .
dockerfile: ./setup/Dockerfile
target: shiny
ports:
- "80:3838"
volumes:
- type: bind
source: demo\config
target: /config
- type: bind
source: demo\data
target: /data
depends_on:
- mariadb
- qc_process
restart: always
env_file: "settings_demo.env"
command: '/init'
ms_converter:
cap_add:
- SYS_PTRACE
networks:
frontend:
ipv4_address: 172.20.0.5
build:
context: .
dockerfile: ./setup/Dockerfile_converter
target: converter
volumes:
- type: bind
source: demo\data
target: /data
restart: always
env_file: "settings_demo.env"
# remember to escape quotes
command: '/setup/cron_with_env.sh'
db-backup:
container_name: db-backup
image: tiredofit/db-backup
networks:
frontend:
ipv4_address: 172.20.0.6
volumes:
- ./backups:/backup
env_file: "settings_demo.env"
depends_on:
- mariadb
restart: always