harbor/docker-compose.yml aktualisiert

This commit is contained in:
2026-01-02 20:46:16 +00:00
parent b6ef8045da
commit 4bd201e178

View File

@@ -91,4 +91,62 @@ services:
portal:
image: goharbor/harbor-portal:${HARBOR_VERSION:-v2.11.0}
container_name: ${HARBOR_PORT
container_name: ${HARBOR_PORTAL_CONTAINER:-harbor-portal}
restart: always
networks:
- harbor
- proxy
depends_on:
- core
labels:
- "traefik.enable=true"
- "traefik.http.routers.harbor.entrypoints=websecure"
- "traefik.http.routers.harbor.rule=Host(`${HARBOR_HOSTNAME:-harbor.local}`)"
- "traefik.http.routers.harbor.tls=true"
- "traefik.http.routers.harbor.tls.passthrough=true"
- "traefik.http.services.harbor.loadbalancer.server.port=${HARBOR_HTTPS_PORT:-8443}"
jobservice:
image: goharbor/harbor-jobservice:${HARBOR_VERSION:-v2.11.0}
container_name: ${HARBOR_JOB_CONTAINER:-harbor-jobservice}
restart: always
volumes:
- "${HARBOR_DATA_PATH:-/data/harbor}/jobservice:/var/log/jobs"
- "${HARBOR_DATA_PATH:-/data/harbor}/config:/etc/harbor"
networks:
- harbor
depends_on:
- core
database:
image: goharbor/harbor-db:${HARBOR_VERSION:-v2.11.0}
container_name: ${HARBOR_DB_CONTAINER:-harbor-db}
restart: always
environment:
- POSTGRES_PASSWORD=${HARBOR_DB_PASSWORD:-root123}
volumes:
- "${HARBOR_DATA_PATH:-/data/harbor}/database:/var/lib/postgresql/data"
networks:
- harbor
depends_on:
- harbor-config
redis:
image: goharbor/redis-photon:${HARBOR_VERSION:-v2.11.0}
container_name: ${HARBOR_REDIS_CONTAINER:-harbor-redis}
restart: always
networks:
- harbor
depends_on:
- harbor-config
# ---------------------------------------------------------
# Netzwerke
# ---------------------------------------------------------
networks:
harbor:
driver: bridge
proxy:
external: true
name: ${PROXY_NETWORK_NAME:-proxy}