-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
49 lines (45 loc) · 1.02 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
services:
postgres:
build:
context: .
dockerfile: ./docker/postgres/Dockerfile
networks:
docsid_nw:
ports:
- "54321:5432"
environment:
- POSTGRES_USER=${DOCSID_POSTGRES_USER}
- POSTGRES_PASSWORD=${DOCSID_POSTGRES_PASSWORD}
volumes:
- ./docker/postgres/initdb:/docker-entrypoint-initdb.d
- docsid_postgres_data:/var/lib/postgresql/data
restart: unless-stopped
tty: true
api:
build:
context: .
dockerfile: ./docker/python/Dockerfile
target: development
volumes:
# Mount Volume to separate .venv from the host
- python_venv:/deploy/.venv
- ./:/deploy
working_dir: /deploy
command: >
bash -c "
python entry.py sleep infinity
"
restart: unless-stopped
tty: true
networks:
docsid_nw:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "false"
ipam:
driver: default
volumes:
python_venv:
driver: local
docsid_postgres_data:
driver: local