add runner

This commit is contained in:
Puechberty Arthur
2026-06-12 01:26:06 +02:00
parent e748b75a4b
commit 74ecd21eda
8 changed files with 89 additions and 32 deletions
+16 -12
View File
@@ -1,18 +1,22 @@
services:
reducelink:
image: node:20-alpine
build:
context: .
dockerfile: Dockerfile
container_name: reducelink
working_dir: /app
volumes:
- .:/app
- node_modules:/app/node_modules
ports:
- "3006:3000"
environment:
- DATABASE_URL=file:./dev.db
- NEXT_PUBLIC_BASE_URL=https://reducelink.arthurp.fr
command: sh -c "apk add --no-cache openssl libc6-compat && npm install && npx prisma generate && npx prisma migrate deploy && npm run build && npm run start"
- "${APP_PORT}:3000"
env_file:
- .env
restart: unless-stopped
volumes:
node_modules:
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s