2021-03-18 14:21:36 +01:00
|
|
|
services:
|
|
|
|
|
fredy:
|
|
|
|
|
container_name: fredy
|
|
|
|
|
build:
|
2022-01-24 16:41:23 +01:00
|
|
|
context: .
|
2021-03-18 14:21:36 +01:00
|
|
|
dockerfile: Dockerfile
|
2025-09-29 12:31:08 +02:00
|
|
|
image: ghcr.io/orangecoding/fredy
|
2025-12-18 19:16:28 +01:00
|
|
|
environment:
|
|
|
|
|
- NODE_ENV=production
|
2021-03-18 14:21:36 +01:00
|
|
|
volumes:
|
|
|
|
|
- ./conf:/conf
|
|
|
|
|
- ./db:/db
|
|
|
|
|
ports:
|
2025-09-20 19:39:48 +02:00
|
|
|
- "9998:9998"
|
2024-04-22 16:14:27 +02:00
|
|
|
restart: unless-stopped
|
2025-12-10 13:23:17 +01:00
|
|
|
# Resource limits to prevent runaway memory usage from Chromium
|
|
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
memory: 1G
|
2025-09-20 19:39:48 +02:00
|
|
|
healthcheck:
|
2025-12-10 13:23:17 +01:00
|
|
|
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "5", "http://localhost:9998/"]
|
2025-09-20 19:39:48 +02:00
|
|
|
interval: 120s
|
|
|
|
|
timeout: 10s
|
2025-12-10 13:23:17 +01:00
|
|
|
retries: 3
|
|
|
|
|
start_period: 30s
|