-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (32 loc) · 961 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3.7'
services:
registry:
image: registry:2.7.0
restart: always
# ports:
# - 5000:5000
environment:
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
volumes:
- registry-data:/var/lib/registry
- registry-auth:/auth
networks:
- traefik_default
- default
labels:
- "traefik.port=5000"
- "traefik.enable=true"
# - "traefik.docker.network=traefik_network"
- "traefik.http.routers.registry.rule=Host(`${APP_FQDN:-localhost}`)"
- "traefik.http.routers.registry.entrypoints=web"
- "traefik.http.routers.registry-tls.rule=Host(`${APP_FQDN:-localhost}`)"
- "traefik.http.routers.registry-tls.entrypoints=websecure"
- "traefik.http.routers.registry-tls.tls.certresolver=default"
volumes:
registry-auth:
registry-data:
networks:
traefik_default:
external: true