-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 916 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 916 Bytes
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
version: '3.5'
services:
web:
build: ./
container_name: reservation_web_container
command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8100"
volumes:
- ./:/usr/src/app/
ports:
- "8100:8100"
env_file:
- ./.env
depends_on:
- db
debug:
build: ./
container_name: reservation_debug_container
command: sleep infinity
volumes:
- ./:/usr/src/app/
ports:
- "8101:8101"
env_file:
- ./.env
stop_signal: SIGINT
restart: unless-stopped
depends_on:
- db
db:
container_name: reservation_postgres_container
image: "postgres:14"
volumes:
- ./.docker/data/postgres_data:/var/lib/postgresql/data/
ports:
- "5435:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=reservation
volumes:
postgres_data: