Last active
April 24, 2021 22:27
-
-
Save sar/8cc824a916a9ea49ff6ae672002c4fd5 to your computer and use it in GitHub Desktop.
Docker compose file for testing Caddy, emits default `index.html` unless volume attached to `/var/www/html`
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
| # ----------------- | |
| # Caddy | |
| # Docs: https://hub.docker.com/_/caddy/ | |
| # ----------------- | |
| version: "3.7" | |
| services: | |
| caddy: | |
| image: caddy:latest | |
| ports: | |
| - 1234:80 | |
| - 12345:443 | |
| volumes: | |
| - ./data:/data | |
| networks: | |
| - caddy0 | |
| networks: | |
| caddy0: | |
| driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment