-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.v1.yml
More file actions
125 lines (117 loc) · 3.13 KB
/
docker-compose.v1.yml
File metadata and controls
125 lines (117 loc) · 3.13 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
# Frozen v1 stack - isolated DB, containers, volumes
# Start with: docker compose -f docker-compose.v1.yml -p eventflow-v1 up -d --build
# Requires: docker network create eventflow-net (shared with main stack's Caddy)
services:
db:
image: postgis/postgis:16-3.4
container_name: nagoya-db-v1
restart: unless-stopped
environment:
POSTGRES_DB: nagoya_construction_v1
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data_v1:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d nagoya_construction_v1"]
interval: 10s
timeout: 5s
retries: 5
networks:
- eventflow-net
mongo:
image: mongo:4.4
container_name: nagoya-mongo-v1
restart: unless-stopped
volumes:
- mongo_data_v1:/data/db
healthcheck:
test: ["CMD", "mongo", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
networks:
- eventflow-net
orion-ld:
image: fiware/orion-ld:1.5.1
platform: linux/amd64
container_name: nagoya-orion-ld-v1
restart: unless-stopped
depends_on:
mongo:
condition: service_healthy
environment:
ORIONLD_MONGO_HOST: mongo
ORIONLD_MONGO_DB: orionld_v1
ORIONLD_LOG_LEVEL: DEBUG
command: -dbhost mongo -logLevel DEBUG
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:1026/version > /dev/null || exit 1"]
interval: 10s
timeout: 5s
retries: 5
networks:
- eventflow-net
api:
build:
context: ./backend
dockerfile: Dockerfile
container_name: nagoya-api-v1
restart: unless-stopped
depends_on:
db:
condition: service_healthy
orion-ld:
condition: service_healthy
environment:
NODE_ENV: development
DATABASE_URL: postgres://postgres:postgres@db:5432/nagoya_construction_v1
ORION_LD_URL: http://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
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3000/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
networks:
- eventflow-net
web:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: nagoya-web-v1
restart: unless-stopped
depends_on:
api:
condition: service_healthy
environment:
API_PROXY_TARGET: http://api:3000
volumes:
- ./frontend/src:/app/src:ro
- ./frontend/public/tiles:/app/public/tiles:ro
networks:
- eventflow-net
martin:
image: ghcr.io/maplibre/martin:v0.14.2
container_name: nagoya-martin-v1
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgres://postgres:postgres@db:5432/nagoya_construction_v1
command: --auto-bounds calc
networks:
- eventflow-net
volumes:
postgres_data_v1:
mongo_data_v1:
networks:
eventflow-net:
external: true