-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
51 lines (50 loc) · 1.21 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'
services:
postgis:
image: kartoza/postgis:15-3
environment:
- POSTGRES_USER=docker
- POSTGRES_PASS=docker
- POSTGRES_DB=postgres
ports:
- '5432:5432'
volumes:
- postgis-data:/var/lib/postgresql
- ./postgis-init/:/docker-entrypoint-initdb.d/
networks:
- default
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
interval: 10s
timeout: 5s
retries: 5
martin:
image: ghcr.io/maplibre/martin:v0.10.0
restart: unless-stopped
ports:
- 3000:3000
depends_on:
postgis:
condition: service_healthy
networks:
- default
volumes:
- ./martin:/app
command: --config /app/config.yml
nginx:
image: nginx
ports:
- '80:80'
volumes:
- ./nginx/html:/usr/share/nginx/html
- ./nginx/conf.d:/etc/nginx/conf.d
networks:
- default
depends_on:
- martin
volumes:
postgis-data:
driver: local
networks:
default:
driver: bridge