yamlversion: "3"
services:
caddy:
container_name: caddy
image: caddy:alpine
restart: unless-stopped
ports:
- "80:80"
- "80:80/udp"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
portainer:
container_name: portainer
image: portainer/portainer-ce:latest
command: -H unix:///var/run/docker.sock
restart: unless-stopped
# ports:
# - 8000:8000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./portainer:/data
redis:
container_name: redis
image: redis:alpine
restart: unless-stopped
volumes:
- ./redis:/data
Caddyfileportainer.uing.vip { log { output stdout format console level ERROR } reverse_proxy portainer:9000 }
本文作者:菜鸟
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 许可协议。转载请注明出处!