forked from motis-project/prima
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
122 lines (115 loc) · 3.18 KB
/
docker-compose.yml
File metadata and controls
122 lines (115 loc) · 3.18 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
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:master
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:master
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
- TZ=Europe/Berlin
extra_hosts:
- 'host.docker.internal:host-gateway'
build:
context: .
prometheus:
image: prom/prometheus
container_name: prometheus
restart: always
volumes:
- './monitoring/:/etc/prometheus/'
- prometheus-data:/prometheus
ports:
- 13090:9090
command: '--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --storage.tsdb.retention.time=1y --storage.tsdb.retention.size=10GB --web.console.libraries=/usr/share/prometheus/console_libraries --web.console.templates=/usr/share/prometheus/consoles'
blackbox-exporter:
image: quay.io/prometheus/blackbox-exporter
container_name: blackbox-exporter
restart: always
volumes:
- './monitoring/blackbox.yml:/etc/prometheus/blackbox.yml'
command: '--config.file=/etc/prometheus/blackbox.yml'
alertmanager:
image: prom/alertmanager
container_name: alertmanager
restart: always
volumes:
- './monitoring/alertmanager.yml:/etc/prometheus/alertmanager.yml'
command: '--config.file=/etc/prometheus/alertmanager.yml'
node-exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node-exporter
command: '--path.rootfs=/host --collector.disable-defaults --collector.cpu --collector.diskstats --collector.filesystem --collector.loadavg --collector.meminfo --collector.netdev'
pid: host
restart: always
volumes:
- '/:/host:ro,rslave'
sql-exporter:
image: burningalchemist/sql_exporter
container_name: sql-exporter
command: '--config.file=/etc/prometheus/sql.yml'
volumes:
- './monitoring/sql/:/etc/prometheus/'
pid: host
restart: always
grafana:
image: grafana/grafana-oss
container_name: grafana
restart: always
volumes:
- './monitoring/grafana/:/var/lib/grafana/'
ports:
- 13000:3000
cron:
build:
context: .
dockerfile: cron/Dockerfile
env_file:
- .env
depends_on:
- pg
restart: always
container_name: cron
volumes:
- ./cron/scripts:/app/scripts
- ./cron/crontab:/etc/cron.d/cron-jobs:rw
- ./db_backups:/app/db_backups
volumes:
data-volume:
motis-data:
prometheus-data: