-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.demo.yml
More file actions
137 lines (130 loc) · 3.66 KB
/
Copy pathdocker-compose.demo.yml
File metadata and controls
137 lines (130 loc) · 3.66 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
# Docker Compose for Auth Role System Demo (demo.eventflow.uixai.org)
# This config uses the frontend branch
services:
demo-db:
image: postgis/postgis:16-3.4
container_name: nagoya-demo-db
restart: unless-stopped
environment:
POSTGRES_DB: nagoya_construction_demo
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-jQ6eerv0s1pCxy6EMwI7h7g6}
volumes:
- demo_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d nagoya_construction_demo"]
interval: 10s
timeout: 5s
retries: 5
demo-mongo:
image: mongo:4.4
container_name: nagoya-demo-mongo
restart: unless-stopped
volumes:
- demo_mongo_data:/data/db
healthcheck:
test: ["CMD", "mongo", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
demo-orion-ld:
image: fiware/orion-ld:1.5.1
platform: linux/amd64
container_name: nagoya-demo-orion-ld
restart: unless-stopped
depends_on:
demo-mongo:
condition: service_healthy
environment:
ORIONLD_MONGO_HOST: demo-mongo
ORIONLD_MONGO_DB: oriondemo
ORIONLD_LOG_LEVEL: DEBUG
command: -dbhost demo-mongo -logLevel DEBUG
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:1026/version > /dev/null || exit 1"]
interval: 10s
timeout: 5s
retries: 5
demo-api:
build:
context: ./backend
dockerfile: Dockerfile
container_name: demo-api
restart: unless-stopped
depends_on:
demo-db:
condition: service_healthy
demo-orion-ld:
condition: service_healthy
environment:
NODE_ENV: production
DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD:-jQ6eerv0s1pCxy6EMwI7h7g6}@demo-db:5432/nagoya_construction_demo
ORION_LD_URL: http://demo-orion-ld:1026
PORT: 3000
TZ: Asia/Tokyo
GOOGLE_MAPS_API_KEY: ${GOOGLE_MAPS_API_KEY:-}
volumes:
- ./backend/src:/app/src:ro
- ./backend/uploads:/app/uploads
- ./shared:/shared:ro
- ./sample-data:/sample-data:ro
networks:
- default
- eventflow-net
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3000/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
demo-web:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: demo-web
restart: unless-stopped
depends_on:
demo-api:
condition: service_healthy
environment:
NODE_ENV: production
VITE_API_BASE_URL: /api
VITE_TILES_BASE_URL: /tiles
VITE_PMTILES_BASE_URL: /tiles
volumes:
- ./frontend/src:/app/src:ro
- ./shared:/shared:ro
- ./frontend/public:/app/public:ro
networks:
- default
- eventflow-net
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:5173 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
demo-martin:
image: ghcr.io/maplibre/martin:latest
container_name: demo-martin
restart: unless-stopped
depends_on:
demo-db:
condition: service_healthy
environment:
DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD:-jQ6eerv0s1pCxy6EMwI7h7g6}@demo-db:5432/nagoya_construction_demo
MARTIN_KEEP_ALIVE: 75
MARTIN_MAX_FEATURE_COUNT: 10000
command: --listen-addresses 0.0.0.0:3000
networks:
- default
- eventflow-net
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3000/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
volumes:
demo_postgres_data:
demo_mongo_data:
networks:
eventflow-net:
external: true