-
Notifications
You must be signed in to change notification settings - Fork 6
/
production-docker-compose.yml
50 lines (48 loc) · 1.22 KB
/
production-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
version: '3.4'
services:
app:
build:
context: https://github.com/DarkGeekMS/ApeX-Server.git#${BRANCH-master}
args:
- WEB_BRANCH=${WEB_BRANCH-master}
- SEED=${SEED-false}
env_file:
- .env
ports:
- "${PORT-80}:80"
restart: always
volumes:
- ./.env:/app/.env
- ./app/vendor/:/app/vendor
- ./app/storage/logs:/app/storage/logs
- ./app/storage/app/public:/app/storage/app/public
labels:
com.datadoghq.ad.logs: '[{"source":"alpine", "service":"app"}]'
deploy:
update_config:
parallelism: 2
delay: 10s
failure_action: rollback
monitor: 2m
order: start-first
healthcheck:
test: ["CMD", "curl", "http://localhost"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
database:
image: mariadb:10.1.38
volumes:
- dbdata:/var/lib/mysql
env_file:
- .env
restart: always
ports:
- "3306:3306"
labels:
com.datadoghq.ad.logs: '[{"source":"mariadb", "service":"database"}]'
volumes:
dbdata:
external:
name: dbdata-external-production