-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
56 lines (52 loc) · 1.67 KB
/
compose.dev.yml
File metadata and controls
56 lines (52 loc) · 1.67 KB
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
services:
postgis:
container_name: postgis
image: docker.io/postgis/postgis:18-3.6-alpine
ports:
- 5432:5432
environment:
- POSTGRES_USER=trains
- POSTGRES_PASSWORD=trains
- POSTGRES_DB=trains
volumes:
- trainstatus-db:/var/lib/postgresql
- ./postgresql.conf:/etc/postgresql/postgresql.conf:Z,ro
shm_size: 1g
healthcheck:
test: ["CMD", "pg_isready", "-U", "trains", "-d", "trains"]
interval: 5s
timeout: 5s
retries: 5
valkey:
container_name: valkey
image: valkey/valkey:alpine@sha256:84c96f47ebe197e635cd3ddbe3ab74e8bdf783cf3befbfb1c36387275c1cd5d5
ports:
- 6379:6379
volumes:
- trainstatus-cache:/data
martin:
container_name: martin
image: ghcr.io/maplibre/martin:latest@sha256:9fb167869c47828254332dfe4355c1454a53f19d32d1878db54f8cbdac84c45e
ports:
- 3000:3000
environment:
- DATABASE_URL=postgresql://trains:trains@postgis:5432/trains
depends_on:
postgis:
condition: service_healthy
command: ["--config", "/config/martin.yml"]
# TODO: maybe copy data from geo-assets container instead of mounting directly.
volumes:
- ./geo/martin.yml:/config/martin.yml:Z,ro
- ./geo/sprites:/assets/sprites:Z,ro
- ./geo/styles:/assets/styles:Z,ro
- ./geo/fonts:/assets/fonts:Z,ro
- ./geo/data/basemap.mbtiles:/data/basemap.mbtiles:Z,ro
# - ./geo/data/basemap.pmtiles:/data/basemap.pmtiles:Z,ro
# maputnik:
# image: ghcr.io/maplibre/maputnik:main@sha256:f7726a12133e82a7583b6743f395cdf61755885158b398f8226a607ec582bab8
# ports:
# - "8888:8000"
volumes:
trainstatus-db:
trainstatus-cache: