-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (62 loc) · 1.41 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
services:
postgis:
image: postgis/postgis:latest
volumes:
- database:/var/lib/postgresql/data
env_file: ".env"
ports:
- "5432:5432"
environment:
PGUSER: "${POSTGRES_USER}"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
x-mobility-map: &mobility-map
build:
context: .
dockerfile: Dockerfile
image: mobility-map
env_file: ".env"
x-one-shot: &one-shot
restart: no
labels:
- "com.docker.compose.container-number=0"
- "com.docker.compose.oneoff=True"
profiles:
- one-shot
db-migrator:
<<: [*mobility-map, *one-shot]
depends_on:
postgis:
condition: service_healthy
gtfs-importer:
<<: [*mobility-map, *one-shot]
volumes:
- ./data:/usr/src/mobility-map/data
depends_on:
postgis:
condition: service_healthy
osm-importer:
<<: *one-shot
image: iboates/osm2pgsql:latest
env_file: ".env"
volumes:
- ./data:/data
- ./scripts/mobility-flex.lua:/config/mobility-flex.lua
depends_on:
postgis:
condition: service_healthy
frontend:
<<: *mobility-map
command: frontend-worker
ports:
- "3000:3000"
depends_on:
postgis:
condition: service_healthy
volumes:
database:
driver: local