feat: add Docker/OpenTofu deployment and DE/NL routing

This commit is contained in:
BuTzZ
2026-07-24 23:10:17 +02:00
parent 57f7b4dedb
commit 12eee8d211
59 changed files with 4452 additions and 148 deletions
+41 -2
View File
@@ -1,7 +1,44 @@
version: "2.4"
services:
watermaps:
build:
context: .
dockerfile: Dockerfile
image: watermaps:local
ports:
- "${WATERMAPS_HTTP_PORT:-5173}:5174"
environment:
NODE_ENV: production
HOST: 0.0.0.0
PORT: 5174
DATABASE_URL: ""
REDIS_URL: ""
WATERMAPS_WEB_DIST_PATH: /app/apps/web/dist
WATERMAPS_LOCAL_FAIRWAYS_PATH: /data/germany-netherlands-fairways.json
WATERMAPS_LIVE_FAIRWAYS: "false"
WATERMAPS_DEMO_DATA: "true"
volumes:
- type: bind
source: ./data/local
target: /data
read_only: true
bind:
create_host_path: false
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://127.0.0.1:5174/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))"
]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
postgres:
profiles: ["postgis"]
image: postgis/postgis:16-3.4
environment:
POSTGRES_DB: seacompass
@@ -19,6 +56,7 @@ services:
retries: 5
redis:
profiles: ["postgis"]
image: redis:7-alpine
ports:
- "6379:6379"
@@ -29,6 +67,7 @@ services:
retries: 5
martin:
profiles: ["postgis"]
image: ghcr.io/maplibre/martin:latest
command: ["--config", "/config/martin.yaml"]
ports: