-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (55 loc) · 1.18 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
55
56
57
58
services:
database:
container_name: database
hostname: database
image: postgres:16.1
env_file: .env
volumes:
- ./database:/var/lib/postgresql/data
networks:
- transcendence
restart: unless-stopped
healthcheck:
test: [ 'CMD', 'pg_isready', '-U', 'postgres' ]
interval: 5s
timeout: 5s
retries: 5
django:
container_name: django
hostname: django
build:
context: ./backend
dockerfile: Dockerfile
env_file: .env
volumes:
- ./backend:/app
- ./certification:/certification
networks:
- transcendence
ports:
- 8888:8888 # Websockets
restart: unless-stopped
depends_on:
database:
condition: service_healthy # wait for database to be ready
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
env_file: .env
networks:
- transcendence
ports:
- 80:80
- 443:443
volumes:
- ./frontend:/app
- ./certification:/certification
restart: unless-stopped
depends_on:
- django
networks:
transcendence:
name: transcendence-network
driver: bridge