mirror of
https://github.com/arthur-pbty/hub.git
synced 2026-08-01 20:29:16 +02:00
add runner
This commit is contained in:
+15
-24
@@ -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
|
||||
Reference in New Issue
Block a user