24 lines
648 B
Django/Jinja
24 lines
648 B
Django/Jinja
# vim: ft=yaml.docker-compose
|
|
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
image: registry:{{ services.docker_registry.version }}
|
|
restart: always
|
|
networks:
|
|
- external_services
|
|
volumes:
|
|
- "./registry:/var/lib/registry"
|
|
- "./auth:/auth"
|
|
environment:
|
|
VIRTUAL_HOST: "{{ services.docker_registry.domain }}"
|
|
LETSENCRYPT_HOST: "{{ services.docker_registry.domain }}"
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
|
REGISTRY_AUTH: "htpasswd"
|
|
REGISTRY_AUTH_HTPASSWD_PATH: "/auth/htpasswd"
|
|
REGISTRY_AUTH_HTPASSWD_REALM: "data.coop docker registry"
|
|
|
|
networks:
|
|
external_services:
|
|
external: true
|