add runner

This commit is contained in:
Puechberty Arthur
2026-06-12 00:46:02 +02:00
parent 5e3bd52b6b
commit cd5a388928
7 changed files with 79 additions and 55 deletions
+15 -34
View File
@@ -1,41 +1,22 @@
services:
clock-dev:
profiles: ["dev"]
clock:
build:
context: .
target: dev
args:
SITE_URL: ${SITE_URL}
CONTACT_URL: ${CONTACT_URL}
CONTACT_EMAIL: ${CONTACT_EMAIL}
container_name: clock-dev
ports:
- "3000:3000"
volumes:
- .:/app
- /app/node_modules
- /app/.next
env_file:
- .env
environment:
NEXT_TELEMETRY_DISABLED: "1"
NODE_ENV: development
dockerfile: Dockerfile
container_name: clock
clock-prod:
profiles: ["prod"]
build:
context: .
target: runner
args:
SITE_URL: ${SITE_URL}
CONTACT_URL: ${CONTACT_URL}
CONTACT_EMAIL: ${CONTACT_EMAIL}
container_name: clock-prod
restart: unless-stopped
ports:
- "3007: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