add runner

This commit is contained in:
Puechberty Arthur
2026-06-12 01:06:17 +02:00
parent b06d4e6844
commit 4b21254c7d
8 changed files with 75 additions and 39 deletions
+15 -24
View File
@@ -1,31 +1,22 @@
services:
hub-dev:
profiles: ["dev"]
visio:
build:
context: .
target: dev
container_name: hub-dev
ports:
- "3000:3000"
volumes:
- .:/app
- /app/node_modules
- /app/.next
environment:
NEXT_TELEMETRY_DISABLED: "1"
NODE_ENV: development
dockerfile: Dockerfile
container_name: visio
hub-prod:
profiles: ["prod"]
build:
context: .
target: runner
container_name: hub-prod
restart: unless-stopped
ports:
- "3004:3000"
- "${APP_PORT}:3000"
env_file:
- .env
environment:
NEXT_TELEMETRY_DISABLED: "1"
NODE_ENV: production
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s