2021-03-18 14:21:36 +01:00
|
|
|
services:
|
|
|
|
|
fredy:
|
|
|
|
|
container_name: fredy
|
|
|
|
|
# build from empty build folder to reduce size of image
|
|
|
|
|
build:
|
2022-01-24 16:41:23 +01:00
|
|
|
context: .
|
2021-03-18 14:21:36 +01:00
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
image: fredy/fredy
|
|
|
|
|
# map existing config and database
|
|
|
|
|
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-09-20 19:39:48 +02:00
|
|
|
healthcheck:
|
|
|
|
|
# The container will immediately stop when health check fails after retries
|
|
|
|
|
test: ["CMD-SHELL", "curl --fail --silent --show-error --max-time 5 http://localhost:9998/ || exit 1"]
|
|
|
|
|
interval: 120s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 1
|
|
|
|
|
start_period: 10s
|