forked from osm-fr/osmose-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.4 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
version: '3.3'
volumes:
pgdata:
services:
postgis:
shm_size: 1g
image: postgis/postgis:13-3.1-alpine
volumes:
- type: bind
source: ./postgis-init.sh
target: /docker-entrypoint-initdb.d/postgis-init.sh
- pgdata:/var/lib/postgresql/data
## Alternate, to keep the data outside of container
#- ./postgresql-data:/var/lib/postgresql/data
## Alternate, with tmpfs database is only on memory, lost on stop. Save SSD lifetime.
#- type: tmpfs
# target: /var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=zei8diu4ohSh
command: postgres -c synchronous_commit=off -c full_page_writes=off -c max_wal_senders=0 -c wal_level=minimal
networks:
- osmose-backend-internal
backend:
build:
context: ..
dockerfile: docker/Dockerfile
image: osm-fr/osmose_backend
depends_on:
- postgis
volumes:
- type: bind
source: ../osmose_config_password.py
target: /opt/osmose-backend/osmose_config_password.py
read_only: true
- type: bind
source: ./work
target: /data/work/osmose
environment:
- DB_HOST=postgis
- JUPYTER_RUNTIME_DIR=/tmp
#- SENTRY_DSN=
user: "1000:1000"
command: ./osmose_run.py --country=monaco --analyser=osmosis_highway_floating_islands
networks:
- osmose-backend-internal
networks:
osmose-backend-internal: