-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
51 lines (47 loc) · 1.07 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
services:
postgres:
build:
context: .
dockerfile: ./docker/postgres/Dockerfile
networks:
genkaiera_nw:
ports:
- "54320:5432"
environment:
- POSTGRES_USER=${GENKAIERA_POSTGRES_USER}
- POSTGRES_PASSWORD=${GENKAIERA_POSTGRES_PASSWORD}
volumes:
- ./docker/postgres/initdb:/docker-entrypoint-initdb.d
- genkaiera_postgres_data:/var/lib/postgresql/data
restart: unless-stopped
tty: true
app:
build:
context: .
dockerfile: ./docker/python/Dockerfile
target: development
networks:
genkaiera_nw:
volumes:
# Mount Volume to separate .venv from the host
- python_venv:/deploy/.venv
- ./:/deploy
working_dir: /deploy
command: >
bash -c "
while true; do sleep 10000; done
"
restart: unless-stopped
tty: true
networks:
genkaiera_nw:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "false"
ipam:
driver: default
volumes:
python_venv:
driver: local
genkaiera_postgres_data:
driver: local