-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
54 lines (49 loc) Β· 1.12 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
52
53
54
services:
parkour2-vite:
container_name: parkour2-vite
hostname: parkour2-vite
build:
dockerfile: ./frontend.Dockerfile
restart: always
volumes:
- ./frontend:/usr/src/app
parkour2-postgres:
container_name: parkour2-postgres
image: postgres:latest
env_file:
- ./misc/parkour.env
restart: always
volumes:
- pgdb:/var/lib/postgresql/data/
healthcheck:
test: pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB"
interval: 10s
timeout: 2s
retries: 10
ports:
- 5432:5432
parkour2-django:
container_name: parkour2-django
hostname: parkour2-django
build:
dockerfile: ./backend.Dockerfile
target: pk2_base
env_file:
- ./misc/parkour.env
restart: always
volumes:
- ./backend:/usr/src/app
- media:/usr/src/app/media
- staticfiles:/usr/src/app/staticfiles
depends_on:
parkour2-postgres:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
pgdb:
media:
staticfiles:
networks:
parkour2_default:
external: true