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