Skip to content

Instantly share code, notes, and snippets.

@BlueHippoGithub
Created August 11, 2022 18:51
Show Gist options
  • Save BlueHippoGithub/1a6b6569cea8520ea5b6119e8877c70a to your computer and use it in GitHub Desktop.
Save BlueHippoGithub/1a6b6569cea8520ea5b6119e8877c70a to your computer and use it in GitHub Desktop.
Remember to change the volumes for your own desired path
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:
- /home/blue/containers/caddy/Caddyfile:/etc/caddy/Caddyfile
- /home/blue/containers/caddy/site:/srv
- /home/blue/containers/caddy/caddy_data:/data
- /home/blue/containers/caddy/caddy_config:/config
networks:
- caddy
volumes:
caddy_data:
external: true
caddy_config:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment