mapletree/lxc1/p2-apps/zot.yml
admin 18d7b125bb
Some checks are pending
PVE2 Infrastructure Deploy / terraform (push) Waiting to run
correct var name for traefik label
2026-02-06 12:30:53 -07:00

28 lines
No EOL
922 B
YAML

services:
zot:
image: ghcr.io/project-zot/zot-linux-amd64:latest
container_name: zot-node${ZOT_NODE_ID}
restart: unless-stopped
# Zot runs as user 1000 by default in this image, aligning with your setup
user: "1000:1000"
volumes:
# The Config File (We will create this below)
- /shared/zot/config.json:/etc/zot/config.json
# The Storage (Images go here)
- /shared/zot/data:/var/lib/zot
networks:
- zot_external
- zot_internal
labels:
- "traefik.enable=true"
- "traefik.docker.network=zot_external"
- "traefik.http.routers.zot.rule=Host(`${ZOT_HOST_NAME}.${TRAEFIK_DNS_SUFFIX}`)"
- "traefik.http.routers.zot.tls=true"
- "traefik.http.routers.zot.tls.certresolver=dns_resolver"
- "traefik.http.services.zot.loadbalancer.server.port=5000"
networks:
zot_internal:
driver: bridge
zot_external:
external: true