-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
91 lines (90 loc) · 2 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
version: "3.9"
services:
_planscape:
image: planscape
command: ["echo", "build done"]
build:
context: .
dockerfile: docker/Dockerfile
web:
image: planscape
extends:
service: _planscape
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- db
- redis
working_dir: /usr/src/app/src/planscape
command: bin/run_gunicorn.sh
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- .:/usr/src/app
frontend:
build:
context: .
dockerfile: docker/Dockerfile.frontend
ports:
- "4200:4200"
env_file:
- .env
depends_on:
- web
working_dir: /usr/src/app/src/interface
volumes:
- .:/usr/src/app
redis:
image: redis:6.2-alpine
restart: always
ports:
- "6380:6379"
command: redis-server --save 20 1 --loglevel warning
volumes:
- cache:/data/redis
celery_worker:
image: planscape
extends:
service: _planscape
working_dir: /usr/src/app/src/planscape
command: celery -A planscape worker -E --loglevel INFO --concurrency 3
deploy:
replicas: 1
env_file:
- .env
depends_on:
- web
- db
- redis
volumes:
- .:/usr/src/app
db:
image: postgis/postgis:15-3.4
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
POSTGRES_MULTIPLE_EXTENSIONS: postgis,hstore,postgis_topology,postgis_raster,pgrouting
volumes:
- postgres:/data/postgres
ports:
- 5433:5432
restart: unless-stopped
command: -c fsync=off -c synchronous_commit=off -c full_page_writes=off
martin:
image: ghcr.io/maplibre/martin:v0.13.0
restart: unless-stopped
ports:
- "3000:3000"
depends_on:
- db
environment:
- DATABASE_URL=postgresql://postgres:postgres@db/postgres
command: --config /usr/src/app/martin.yaml
volumes:
- .:/usr/src/app
volumes:
postgres: null
cache:
driver: local