forked from dbarzin/deming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 1.45 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
version: "3.7"
services:
web:
build:
context: .
dockerfile: Dockerfile_web
environment:
### PLEASE DISABLE AFTER THE FIRST RUN FOR OPTIMIZATION PRODUCTION
- DB_SLEEP=10
### PLEASE DISABLE FOR PRODUCTION
- USE_DEMO_DATA=1
### PLEASE DISABLE FOR PRODUCTION
#- RESET_DB=FR #EN OR FR
### PLEASE AFTER ONE RUN DISABLE FOR OPTIMIZATION
- UPLOAD_DB_ISO27001=FR #EN OR FR
### PLEASE AFTER ONE RUN DISABLE FOR OPTIMIZATION
- INITIAL_DB=FR #EN OR FR
- TZ=Europe/Paris
volumes:
- ./custom/.env:/var/www/deming/.env
- ./custom/custom_postfix_main.cf:/etc/postfix/main.cf
- ./custom/custom_postfix_mailname:/etc/mailname
- ./custom/deming.php:/var/www/deming/config/deming.php
- ./custom/Kernel.php:/var/www/deming/app/Console/Kernel.php
- ./custom/app.php:/var/www/deming/config/app.php
ports:
- 80:80
depends_on:
mysql:
condition: service_healthy
mysql:
image: mysql:8
environment:
MYSQL_DATABASE: 'deming'
MYSQL_USER: 'deming_user'
MYSQL_PASSWORD: 'demPasssword-123'
MYSQL_ROOT_PASSWORD: 'root'
expose:
- 3306
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p$${MYSQL_ROOT_PASSWORD}"]
interval: 10s
timeout: 5s
retries: 3
### PLEASE ENABLE FOR PERSISTENT DATABASE DATA
volumes:
- dbdata:/var/lib/mysql
volumes:
dbdata: