forked from dbarzin/deming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (48 loc) · 1.46 KB
/
docker-compose.yml
File metadata and controls
48 lines (48 loc) · 1.46 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
services:
deming:
build:
context: .
dockerfile: Dockerfile
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:
- .env:/var/www/deming/.env
- ./docker/custom/custom_postfix_main.cf:/etc/postfix/main.cf
- ./docker/custom/custom_postfix_mailname:/etc/mailname
- ./docker/custom/deming.php:/var/www/deming/config/deming.php
- ./docker/custom/Kernel.php:/var/www/deming/app/Console/Kernel.php
- ./docker/custom/app.php:/var/www/deming/config/app.php
ports:
- 80:8000
depends_on:
mysql:
condition: service_healthy
mysql:
image: mysql:9
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: