You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
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
|
|
|
|
- /root/containers/portainer/portainer-data:/data
|
|
|
|
ports:
|
|
|
|
- 9000:9000
|
|
|
|
networks:
|
|
|
|
- caddy-network
|
|
|
|
|
|
|
|
caddy:
|
|
|
|
image: caddy:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
container_name: caddy
|
|
|
|
volumes:
|
|
|
|
- /root/containers/caddy/Caddyfile:/etc/caddy/Caddyfile
|
|
|
|
- /root/containers/caddy/site:/srv
|
|
|
|
- /root/containers/caddy/caddy_data:/data
|
|
|
|
- /root/containers/caddy/caddy_config:/config
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
networks:
|
|
|
|
- caddy-network
|
|
|
|
|
|
|
|
networks:
|
|
|
|
caddy-network:
|
|
|
|
external: true
|
|
|
|
name: caddy-network
|