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