registry docker-compose file
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
version: "2.4"
|
||||||
|
services:
|
||||||
|
registry:
|
||||||
|
image: registry
|
||||||
|
container_name: registry
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
mem_limit: 500mb
|
||||||
|
|
||||||
|
environment:
|
||||||
|
#- REGISTRY_HTTP_ADDR=0.0.0.0:5000
|
||||||
|
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/registry
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
# - ../config//config.yml:/etc/docker/registry/config.yml:ro
|
||||||
|
- ../images:/registry:ro
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
|
||||||
|
labels:
|
||||||
|
- com.centurylinklabs.watchtower.enable=true
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.registrybit.rule=Host(`registry.goagain.me`)
|
||||||
|
- traefik.http.routers.registrybit.tls=true
|
||||||
|
- traefik.http.routers.registrybit.tls.certresolver=lets-encrypt
|
||||||
|
- traefik.http.routers.registrybit.service=registrybit
|
||||||
|
- traefik.http.services.registrybit.loadbalancer.server.port=5000
|
||||||
|
# - traefik.http.middlewares.test-auth.basicauth.users=admin:$apr1$ruca84Hq$mbjdMZBAG.KWn7vfN/SNK/
|
||||||
|
|
||||||
|
# healthcheck:
|
||||||
|
# test: ["CMD-SHELL", "http://"]
|
||||||
|
# interval: 10s
|
||||||
|
# timeout: 5s
|
||||||
|
# retries: 5
|
||||||
Reference in New Issue
Block a user