fix: Annonce services & networks in docker-compose file
This commit is contained in:
parent
c31926db99
commit
b867b89572
@ -1,3 +1,8 @@
|
|||||||
|
networks:
|
||||||
|
web:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
registry:
|
registry:
|
||||||
restart: always
|
restart: always
|
||||||
image: registry:latest
|
image: registry:latest
|
||||||
@ -7,17 +12,15 @@ registry:
|
|||||||
REGISTRY_AUTH_HTPASSWD_PATH: /auth/registry.password
|
REGISTRY_AUTH_HTPASSWD_PATH: /auth/registry.password
|
||||||
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
|
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
|
||||||
volumes:
|
volumes:
|
||||||
# Mount the password file
|
|
||||||
- ./registry/registry.password:/auth/registry.password
|
- ./registry/registry.password:/auth/registry.password
|
||||||
# Mount the data directory
|
|
||||||
- ./registry/data:/data
|
- ./registry/data:/data
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
|
|
||||||
- "traefik.http.services.registry.loadbalancer.server.port=5000"
|
- "traefik.http.services.registry.loadbalancer.server.port=5000"
|
||||||
|
|
||||||
- "traefik.http.routers.plausible.entrypoints=web"
|
- "traefik.http.routers.registry.entrypoints=web"
|
||||||
- "traefik.http.routers.plausible.middlewares=https-redirect@docker"
|
- "traefik.http.routers.registry.middlewares=https-redirect@docker"
|
||||||
- "traefik.http.routers.registry.rule=Host(`${REGISTRY_HOST}`)"
|
- "traefik.http.routers.registry.rule=Host(`${REGISTRY_HOST}`)"
|
||||||
|
|
||||||
- "traefik.http.routers.registry-https.entrypoints=websecure"
|
- "traefik.http.routers.registry-https.entrypoints=websecure"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user