Last active
April 7, 2023 00:42
-
-
Save ethanjli/b0eb4b78de1053b3e79c45e700cf01e0 to your computer and use it in GitHub Desktop.
Docker Stack demo file for Caddy on a PlanktoScope with Docker
This file contains 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' | |
services: | |
reverse-proxy: | |
image: lucaslorentz/caddy-docker-proxy:2.8.3-alpine | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- server_data:/data | |
- server_config:/config | |
configs: | |
- source: caddyfile | |
target: /etc/caddy/Caddyfile | |
ports: | |
- 80:80 | |
- 443:443 | |
extra_hosts: | |
- host.docker.internal:host-gateway | |
networks: | |
- proxied_network | |
- bridge | |
environment: | |
- CADDY_INGRESS_NETWORKS=caddy | |
- CADDY_DOCKER_CADDYFILE_PATH=/etc/caddy/Caddyfile | |
networks: | |
proxied_network: | |
name: caddy | |
driver: overlay | |
attachable: true | |
bridge: | |
external: true | |
volumes: | |
server_data: | |
server_config: | |
configs: | |
caddyfile: | |
file: ./caddy-Caddyfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment