mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
It's recommend to specify the full "URL" and this aligns with the Readme and default docker would search on Docker Hub, where this is not available: https://hub.docker.com/search?q=fredy%2Ffredy
23 lines
638 B
YAML
23 lines
638 B
YAML
services:
|
|
fredy:
|
|
container_name: fredy
|
|
# build from empty build folder to reduce size of image
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: ghcr.io/orangecoding/fredy
|
|
# map existing config and database
|
|
volumes:
|
|
- ./conf:/conf
|
|
- ./db:/db
|
|
ports:
|
|
- "9998:9998"
|
|
restart: unless-stopped
|
|
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
|