-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
98 lines (96 loc) · 2.62 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
volumes:
postgis-data:
packages: # do not change any detail of this volume
driver: local
driver_opts:
type: none
device: $DATA_DIR # DATA_DIR is the host directory for the data. It has to be in the environment, e.g. in .env file
o: bind
tmp_data: # do not change any detail of this volume
driver: local
driver_opts:
type: none
device: $TMP_DATA_DIR # DATA_DIR is the host directory for the data. It has to be in the environment, e.g. in .env file
o: bind
# It's important it runs in its own private network, also more secure
networks:
routing-packager:
services:
postgis:
image: kartoza/postgis:12.1
container_name: routing-packager-postgis
volumes:
- postgis-data:/var/lib/postgresql
environment:
- ALLOW_IP_RANGE=0.0.0.0/0
- POSTGRES_MULTIPLE_EXTENSIONS=postgis
# mostly needed to define the database hosts
env_file:
- .docker_env
networks:
- routing-packager
ports:
- 5555:5432
restart: always
redis:
image: redis:6.2
container_name:
routing-packager-redis
# mostly needed to define the database hosts
env_file:
- .docker_env
networks:
- routing-packager
restart: always
worker:
image: ghcr.io/geoadmin/routing-graph-packager/routing-graph-packager:latest
container_name: routing-packager-worker
# only works off the package queue
command: worker
# mostly needed to define the database hosts
env_file:
- .docker_env
networks:
- routing-packager
volumes:
- packages:/app/data
- tmp_data:/app/tmp_data
- $PWD/.docker_env:/app/.env # Worker needs access to .env file
depends_on:
- postgis
- redis
healthcheck:
disable: true
restart: always
app:
image: ghcr.io/geoadmin/routing-graph-packager/routing-graph-packager:latest
container_name: routing-packager-app
ports:
- 443:5000
# mostly needed to define the database hosts
env_file:
- .docker_env
volumes:
- packages:/app/data
- tmp_data:/app/tmp_data
- $PWD/.docker_env:/app/.env # CLI needs access to .env file
- $PWD/static:/app/static # static file for frontend
- /data/certs:/app/ssl
networks:
- routing-packager
depends_on:
- postgis
- redis
- worker
healthcheck:
disable: true
restart: always
fake-smtp-server:
image: reachfive/fake-smtp-server:latest
container_name: routing-packager-smtp
# You can reach the frontend on localhost:1080
ports:
- 1080:1080
networks:
- routing-packager
restart: always