-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.15 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
50
51
version: '2.3'
services:
db:
image: mysql:8.0-bookworm
ports:
- '3306'
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
healthcheck:
test: mysqladmin ping -uroot -p"${DB_ROOT_PASSWORD}"
interval: 30s
timeout: 5s
retries: 15
starter:
build: .
env_file:
- .env
environment:
GUNICORN_CMD_ARGS: "--log-level info --reload --access-logfile /var/log/gunicorn.log"
DJANGO_CONFIGURATION: Development
volumes:
- ./starter:/app
- ./docker-entrypoint-init.d/45-django-admin.sh:/docker-entrypoint-init.d/45-django-admin.sh
ports:
- "8020:80"
healthcheck:
test: curl -s http://localhost/healthcheck || exit 1
interval: 30s
timeout: 5s
retries: 15
depends_on:
db:
condition: service_healthy
pma:
image: phpmyadmin/phpmyadmin
ports:
- "8021:80"
environment:
PMA_HOST: "db"
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
depends_on:
db:
condition: service_healthy