-
-
Save thedevopszone/84b9863aa0b011d41551518276780f30 to your computer and use it in GitHub Desktop.
Remember to change the volumes for your own desired path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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