forked from motis-project/prima
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.09 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
version: '3'
services:
pg:
image: postgis/postgis:16-3.4
restart: always
container_name: pg
ports:
- 6500:5432
env_file:
- ./.env
volumes:
- type: volume
source: data-volume
target: /var/lib/postgresql/data
adminer:
image: adminer
restart: always
ports:
- 6501:8080
motis-import:
image: ghcr.io/motis-project/motis:2.0
volumes:
- ./GTFS.zip:/input/GTFS.zip
- ./osm.pbf:/input/osm.pbf
- ./config.yml:/config.yml
- motis-data:/data:rw
command: /bin/sh -c "./motis import"
motis-server:
image: ghcr.io/motis-project/motis:2.0
depends_on:
- motis-import
volumes:
- motis-data:/data:rw
ports:
- 6499:8080
command: /bin/sh -c "cd / && /motis server"
prima:
image: prima
restart: always
ports:
- 7777:3000
environment:
- DATABASE_URL=postgresql://postgres:pw@pg/prima
- ORIGIN=http://localhost:7777
extra_hosts:
- 'host.docker.internal:host-gateway'
build:
context: .
volumes:
data-volume:
motis-data: