57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
services:
|
|
|
|
SERVICE_NAME:
|
|
image: ${DOCKER_IMAGE}
|
|
container_name: ${CONTAINER_NAME}
|
|
restart: unless-stopped
|
|
networks:
|
|
- homelab-network
|
|
- traefik-network
|
|
ports:
|
|
- ${EXTERNAL_PORT}:${INTERNAL_PORT}
|
|
|
|
# Comment out volumes section if it is empty
|
|
#volumes:
|
|
|
|
# Comment out environment section if it is empty
|
|
# environment:
|
|
|
|
healthcheck:
|
|
test: ['CMD', 'wget', '--quiet', '--tries=1', '--spider', 'http://localhost:${INTERNAL_PORT}/']
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
# Labels in compose files are treated as literal strings, disallowing variable replacement in the string
|
|
# However the string can be defined as a variable
|
|
- ${WATCHTOWER_ENABLE_LABEL}
|
|
- ${CATEGORY_LABEL}
|
|
- ${DESCRIPTION_LABEL}
|
|
- ${TRAEFIK_ENABLE_LABEL}
|
|
- ${TRAEFIK_NETWORK_LABEL}
|
|
- ${HOST_LABEL}
|
|
- ${ENTRYPOINT_LABEL}
|
|
- ${CERT_LABEL}
|
|
- ${AUTHELIA_LABEL}
|
|
- ${LOADBALANCER_LABEL}
|
|
|
|
|
|
networks:
|
|
homelab-network:
|
|
external: true
|
|
traefik-network:
|
|
external: true
|
|
|
|
|
|
x-dockge:
|
|
urls:
|
|
- https://${PROXY_URL}
|
|
- ${LOCAL_URL}
|
|
|
|
x-arcane:
|
|
icon:
|
|
urls:
|
|
- https://${PROXY_URL}
|
|
- ${LOCAL_URL}
|