forked from hiddewie/OpenRailwayMap-vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
115 lines (110 loc) · 2.58 KB
/
compose.yaml
File metadata and controls
115 lines (110 loc) · 2.58 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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
services:
db:
image: ghcr.io/hiddewie/openrailwaymap-import-db:latest
build:
context: db
ports:
- '5432:5432'
shm_size: 1g
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- PG_WORK_MEM
- PG_MAINTENANCE_WORK_MEM
# Custom directory so it is not part of a VOLUME
- PGDATA=/data/postgresql
- POSTGRES_DB=gis
healthcheck:
test: pg_isready -U postgres -d gis
interval: 1s
timeout: 1s
retries: 3
start_period: 5m
import:
image: ghcr.io/hiddewie/openrailwaymap-import:latest
build:
dockerfile: import/Dockerfile
cache_from:
- ghcr.io/hiddewie/openrailwaymap-import:latest
command:
- import
depends_on:
db:
condition: service_healthy
volumes:
- ./data:/data
environment:
- PGHOST=db
- PGUSER=postgres
- PG_WORK_MEM
- PG_MAINTENANCE_WORK_MEM
- OSM2PGSQL_NUMPROC
- OSM2PGSQL_DATAFILE
data:
image: ghcr.io/hiddewie/openrailwaymap-data:latest
build:
context: data
dockerfile: Dockerfile
command:
- sleep
- inf
martin:
image: ghcr.io/hiddewie/openrailwaymap-martin:latest
build:
dockerfile: martin.Dockerfile
depends_on:
db:
condition: service_healthy
environment:
- DATABASE_URL=postgresql://postgres@db:5432/gis
ulimits:
nproc: 65535
nofile:
soft: 26677
hard: 46677
develop:
watch:
- action: rebuild
path: martin
- action: rebuild
path: symbols
martin-proxy:
image: ghcr.io/hiddewie/openrailwaymap-proxy:latest
build:
dockerfile: proxy.Dockerfile
ports:
- '8000:8000'
- '443:443'
environment:
TILES_UPSTREAM: martin:3000
API_UPSTREAM: api:5000
PUBLIC_PROTOCOL: http
PUBLIC_HOST: localhost:8000
NGINX_CACHE_TTL: '0'
CLIENT_CACHE_TTL_ASSETS_FRESH: '0'
CLIENT_CACHE_TTL_ASSETS_STALE: '0'
CLIENT_CACHE_TTL_API_FRESH: '0'
CLIENT_CACHE_TTL_API_STALE: '0'
CLIENT_CACHE_TTL_TILES_FRESH: '0'
CLIENT_CACHE_TTL_TILES_STALE: '0'
develop:
watch:
- action: rebuild
path: proxy
- action: rebuild
path: features
api:
image: ghcr.io/hiddewie/openrailwaymap-api:latest
build:
context: api
environment:
- PORT=5000
- HOST=0.0.0.0
- POSTGRES_USER=postgres
- POSTGRES_HOST=db
- POSTGRES_DB=gis
ports:
- '5000:5000'
develop:
watch:
- action: rebuild
path: api