Some checks are pending
CI/CD Pipeline (Fully Isolated DinD) / Run Tests (DinD) (push) Waiting to run
CI/CD Pipeline (Fully Isolated DinD) / Build and Push Docker Images (DinD) (push) Blocked by required conditions
CI/CD Pipeline (Fully Isolated DinD) / Deploy to Production (push) Blocked by required conditions
29 lines
812 B
YAML
29 lines
812 B
YAML
services:
|
||
registry:
|
||
image: registry:2
|
||
container_name: registry
|
||
restart: unless-stopped
|
||
environment:
|
||
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /var/lib/registry
|
||
# Optional but recommended if you want to be able to delete images:
|
||
REGISTRY_STORAGE_DELETE_ENABLED: "true"
|
||
# Listen only inside the compose network
|
||
REGISTRY_HTTP_ADDR: 0.0.0.0:5000
|
||
volumes:
|
||
- ./registry:/var/lib/registry
|
||
expose:
|
||
- "5000" # internal only, not published
|
||
|
||
caddy:
|
||
image: caddy:2
|
||
container_name: caddy
|
||
restart: unless-stopped
|
||
depends_on:
|
||
- registry
|
||
ports:
|
||
- "443:443" # HTTPS only
|
||
- "4443:4443"
|
||
# deliberately no "80:80" – no HTTP
|
||
volumes:
|
||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||
- ./certs:/etc/certs:ro
|