first commit
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
192.168.50.63:5000 {
|
||||||
|
tls internal
|
||||||
|
reverse_proxy localhost:5000
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
# Overview
|
||||||
|
|
||||||
|
We are using caddy as sidecar with ssl to then re-route users to our docker container for our registry at port 5000.
|
||||||
|
|
||||||
|
# Start
|
||||||
|
```
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
# List repositories
|
||||||
|
From within the host:
|
||||||
|
`curl localhost:5000/v2/_catalog`
|
||||||
|
Or from outside, have to hit the reverse proxy first.
|
||||||
|
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
version: '3.3'
|
||||||
|
networks:
|
||||||
|
caddy:
|
||||||
|
services:
|
||||||
|
portainer:
|
||||||
|
image: portainer/portainer-ce:latest
|
||||||
|
container_name: portainer
|
||||||
|
restart: unless-stopped
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
- /home/blue/containers/portainer/portainer-data:/data
|
||||||
|
networks:
|
||||||
|
- caddy
|
||||||
|
ports:
|
||||||
|
- 9000:9000
|
||||||
|
|
||||||
|
caddy:
|
||||||
|
image: caddy:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
container_name: caddy
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
- 443:443
|
||||||
|
volumes:
|
||||||
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||||
|
- ./site:/srv
|
||||||
|
- ./caddy_data:/data
|
||||||
|
- ./caddy_config:/config
|
||||||
|
networks:
|
||||||
|
- caddy
|
||||||
|
|
||||||
|
registry:
|
||||||
|
image: registry:2
|
||||||
|
restart: unless-stopped
|
||||||
|
container_name: registry
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
|
volumes:
|
||||||
|
- /mnt/registry:/var/lib/registry
|
||||||
|
networks:
|
||||||
|
- caddy
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
caddy_data:
|
||||||
|
external: true
|
||||||
|
caddy_config:
|
||||||
Reference in New Issue
Block a user