From f3108dd6ba9d879ce4a98424a7ec25881022263f Mon Sep 17 00:00:00 2001 From: arcbjorn Date: Sun, 23 Oct 2022 18:22:39 -0300 Subject: [PATCH] feat(Docker): add Portainer && Caddy service --- docker-compose.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..f355f71 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,37 @@ +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 + - /root/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: + - /root/containers/caddy/Caddyfile:/etc/caddy/Caddyfile + - /root/containers/caddy/site:/srv + - /root/containers/caddy/caddy_data:/data + - /root/containers/caddy/caddy_config:/config + networks: + - caddy +volumes: + caddy_data: + external: true + caddy_config: