-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
55 lines (52 loc) · 1.24 KB
/
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
services:
python:
build:
context: .
dockerfile: ./docker/python/Dockerfile
# WARNING: Change the target to prod when deploying to `prod`
target: dev
volumes:
# Not to mount .venv directory, separate the directory as a volume
- python_venv:/workspace/.venv
- .:/workspace
networks:
- backend
depends_on:
- postgres
# entrypoint: Do nothing for now
command: tail -f /dev/null
restart: unless-stopped
tty: true
postgres:
build:
context: .
dockerfile: ./docker/postgres/Dockerfile
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- backend
ports:
- "54321:5432"
environment:
POSTGRES_USER: ${IMPERIAL_POLICE_2_POSTGRES_USER}
POSTGRES_PASSWORD: ${IMPERIAL_POLICE_2_POSTGRES_PASSWORD}
restart: unless-stopped
tty: true
volumes:
python_venv:
driver: local
postgres_data:
driver: local
networks:
backend:
name: imperial_police_2
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: 172.28.0.0/16
ip_range: 172.28.5.0/24
gateway: 172.28.5.254
- subnet: 2001:3200:3200::/64
gateway: 2001:3200:3200::1