-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.local.yml
86 lines (86 loc) · 2.34 KB
/
docker-compose.local.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
services:
webclient:
restart: unless-stopped
build: ./webclient
ports:
- "3000:3000"
environment:
TZ: Europe/Berlin
NUXT_PUBLIC_MAPS_URL: https://nav.tum.de/maps
NUXT_PUBLIC_CDN_URL: http://data:3002
NUXT_PUBLIC_API_URL: http://server:3003
# cdn
data:
restart: unless-stopped
build: ./data
environment:
TZ: Europe/Berlin
ports:
- "3002:3002"
server:
restart: unless-stopped
build:
args:
PROFILE: debug
context: server
dockerfile: Dockerfile
command: /bin/navigatum-server
ports:
- "3003:3003"
user: 1000:3000
environment:
TZ: Europe/Berlin
LOG_LEVEL: ${LOG_LEVEL-debug}
MIELI_URL: http://meilisearch:7700
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
TILESERVER_URL: https://nav.tum.de/maps
CDN_URL: http://data:3002/cdn
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_URL: db:5432
CONNECTUM_OAUTH_CLIENT_ID: ${CONNECTUM_OAUTH_CLIENT_ID}
CONNECTUM_OAUTH_CLIENT_SECRET: ${CONNECTUM_OAUTH_CLIENT_SECRET}
GITHUB_TOKEN: ${GITHUB_TOKEN}
JWT_KEY: ${JWT_KEY}
depends_on:
meilisearch:
condition: service_healthy
osm2pgsql-init:
condition: service_completed_successfully
db:
condition: service_healthy
meilisearch:
image: getmeili/meilisearch:v1.11.3
restart: unless-stopped
ports:
- "7700:7700"
environment:
TZ: Europe/Berlin
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
MEILI_ENV: development
healthcheck:
test: wget --quiet --spider http://localhost:7700/health
retries: 5
interval: 10s
start_period: 10s
db:
image: postgis/postgis:17-3.4
restart: unless-stopped
environment:
TZ: Europe/Berlin
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5432:5432"
volumes:
- ./resources/init-db.sh:/docker-entrypoint-initdb.d/init-db.sh:ro
healthcheck:
test: [ "CMD", "pg_isready", "-U", "${POSTGRES_USER}" ]
retries: 5
interval: 10s
# requires docker v25 to be available for ubuntu
# start_interval: 20s
start_period: 20s