forked from openoereb/pyramid_oereb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (67 loc) · 1.81 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.7"
volumes:
venvs:
services:
oereb-make:
image: oereb/main_container
build:
context: .
dockerfile: Dockerfile
user: "${LOCAL_UID}:${LOCAL_GID}"
environment:
PGHOST: ${PGHOST:-oereb-db}
PGPORT: ${PGPORT:-5432}
PGUSER: ${PGUSER:-postgres}
PGPASSWORD: ${PGPASSWORD:-postgres}
PYRAMID_OEREB_PORT: ${PYRAMID_OEREB_PORT:-6543}
VENV_ROOT: /venvs/.venv
volumes:
- .:/workspace:cached
- venvs:/venvs
working_dir: /workspace
entrypoint: make
command: build
oereb-server:
image: oereb/main_container
build:
context: .
dockerfile: Dockerfile
depends_on:
- oereb-db
user: "${LOCAL_UID}:${LOCAL_GID}"
environment:
TZ: Europe/Zurich
PGHOST: ${PGHOST:-oereb-db}
PGPORT: ${PGPORT:-5432}
PGUSER: ${PGUSER:-postgres}
PGPASSWORD: ${PGPASSWORD:-postgres}
PYRAMID_OEREB_PORT: ${PYRAMID_OEREB_PORT:-6543}
VENV_ROOT: /venvs/.venv
volumes:
- .:/workspace:cached
- venvs:/venvs
working_dir: /workspace
command: [ "/venvs/.venv/bin/pserve", "development.ini", "--reload"]
ports:
- ${PYRAMID_OEREB_PORT:-6543}:${PYRAMID_OEREB_PORT:-6543}
networks:
- default
- print-network
oereb-db:
image: postgis/postgis
restart: unless-stopped
environment:
POSTGRES_DB: ${PGDATABASE:-pyramid_oereb_test}
POSTGRES_USER: ${PGUSER:-postgres}
POSTGRES_PASSWORD: ${PGPASSWORD:-postgres}
PGUSER: ${PGUSER:-postgres}
PGPORT: ${PGPORT:-5432}
PGPASSWORD: ${PGPASSWORD:-postgres}
EXPOSED_PGPORT: ${EXPOSED_PGPORT:-5432}
ports:
- ${EXPOSED_PGPORT:-5432}:${PGPORT:-5432}
volumes:
- ./dev/database/structure:/docker-entrypoint-initdb.d
networks:
print-network:
external: true