-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
100 lines (96 loc) · 2.19 KB
/
docker-compose.yml
File metadata and controls
100 lines (96 loc) · 2.19 KB
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
# docker-compose.yml (PROD)
services:
db:
image: hildebrandit/novoboard-db:latest
container_name: novoboard-db
restart: unless-stopped
env_file:
- ./.env
environment:
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASS}
MARIADB_DATABASE: ${DB_NAME}
MARIADB_USER: ${DB_USER}
MARIADB_PASSWORD: ${DB_PASS}
ports:
- "63307:3306"
volumes:
- ./docker/db/data:/var/lib/mysql
networks:
- novoboard-net
healthcheck:
test: >
bash -lc "
mariadb -uroot -p$${DB_ROOT_PASS} -e
'SELECT 1 FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA=\"${DB_NAME}\" AND TABLE_NAME=\"app_users\" LIMIT 1;'
>/dev/null 2>&1
"
interval: 5s
timeout: 3s
retries: 20
start_period: 10s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
php:
image: hildebrandit/novoboard:latest
container_name: novoboard-php
restart: unless-stopped
depends_on:
db:
condition: service_healthy
working_dir: /var/www/html
env_file:
- ./.env
environment:
APP_VERSION: ${APP_VERSION}
COMPOSER_ALLOW_SUPERUSER: "1"
networks:
- novoboard-net
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
cron:
image: hildebrandit/novoboard-cron:latest
container_name: novoboard-cron
restart: unless-stopped
depends_on:
db:
condition: service_healthy
working_dir: /var/www/html
env_file:
- ./.env
environment:
TZ: Europe/Berlin
APP_VERSION: ${APP_VERSION}
command: ["/usr/local/bin/start-cron.sh"]
networks:
- novoboard-net
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
nginx:
image: hildebrandit/novoboard-nginx:latest
container_name: novoboard-nginx
restart: unless-stopped
depends_on:
php:
condition: service_started
ports:
- "8091:80"
networks:
- novoboard-net
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
networks:
novoboard-net:
driver: bridge