generated from davidnet-net/example-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
79 lines (75 loc) · 1.84 KB
/
docker-compose.yaml
File metadata and controls
79 lines (75 loc) · 1.84 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
services:
db:
image: mysql:8.0
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
volumes:
- ./volumes/db_data:/var/lib/mysql
- ./mysql_init.sh:/docker-entrypoint-initdb.d/mysql_init.sh
networks:
- auth-network
api:
build: .
restart: unless-stopped
environment:
DA_ISPROD: ${ISPROD}
DA_JWT_SECRET: ${JWT_SECRET}
DA_DB_USER: ${MYSQL_USER}
DA_DB_PASS: ${MYSQL_PASSWORD}
DA_DB_NAME: ${MYSQL_DATABASE}
DA_DB_HOST: db
DA_LOG_DIR: ${LOG_DIR}
DA_KEEP_LOG_DAYS: ${KEEP_LOG_DAYS}
DA_LOG_TO_TERMINAL: ${LOG_TO_TERMINAL}
DA_EMAIL: ${EMAIL}
DA_EMAIL_PASSWORD: ${EMAIL_PASSWORD}
DA_INTERNAL_TOKEN: ${INTERNAL_TOKEN}
DA_RABBITMQ_USER: ${RABBITMQ_USER}
DA_RABBITMQ_PASS: ${RABBITMQ_PASS}
DA_RABBITMQ_HOST: ${RABBITMQ_HOST}
DA_RABBITMQ_PORT: ${RABBITMQ_PORT}
ports:
- "1000:1000"
volumes:
- ./volumes/logs:/app/logs
- ./volumes/exports:/app/exports
- ./volumes/profile_pictures:/app/profile_pictures
depends_on:
- db
networks:
- auth-network
- rabbitmq-net
dns:
- 192.168.1.141
- 1.1.1.1
healthcheck:
test: [
"CMD-SHELL",
"curl -v -f http://localhost:1000/health/docker || exit 1",
]
interval: 60s
timeout: 10s
retries: 3
start_period: 60s
adminer:
image: adminer
restart: unless-stopped
ports:
- "25566:8080" # Adminer draait van binnen op 8080, buiten op 3000
networks:
- auth-network
depends_on:
- db
volumes:
db_data:
logs:
exports:
networks:
auth-network:
driver: bridge
rabbitmq-net:
external: true