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
141 lines (133 loc) · 3.06 KB
/
compose.yaml
File metadata and controls
141 lines (133 loc) · 3.06 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
services:
db:
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
import:
build:
dockerfile: import/Dockerfile
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
import-test:
build:
dockerfile: import/Dockerfile
target: test
data:
image: openrailwaymap-data
build:
context: data
command:
- 'sleep'
- 'inf'
martin:
build:
dockerfile: martin.Dockerfile
depends_on:
db:
condition: service_healthy
import:
condition: service_completed_successfully
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
proxy:
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
proxy-test:
image: ghcr.io/orange-opensource/hurl:6.1.1@sha256:0fafe31238304394bcba7ab49509dcbb4356798b6a99973d41ef722f6cbbb1e9
depends_on:
proxy:
condition: service_healthy
volumes:
- ./proxy/test/proxy.hurl:/hurl/proxy.hurl
command: [
'--test',
'--verbose',
'--variable', 'base_url=http://proxy:8000',
'/hurl/proxy.hurl'
]
api:
build:
context: api
depends_on:
db:
condition: service_healthy
import:
condition: service_completed_successfully
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
api-test:
image: ghcr.io/orange-opensource/hurl:6.1.1@sha256:0fafe31238304394bcba7ab49509dcbb4356798b6a99973d41ef722f6cbbb1e9
depends_on:
api:
condition: service_healthy
volumes:
- ./api/test/api.hurl:/hurl/api.hurl
command: [
'--test',
'--verbose',
'--variable', 'base_url=http://api:5000/api',
'/hurl/api.hurl'
]