Skip to content

Question about docker usage with Caddy #166

Answered by spencerflagg
spencerflagg asked this question in Q&A
Discussion options

You must be logged in to vote

As it turns out, I'd already come up with the correct solution but apparently forgot to restart the caddy container after the config change. 🤦‍♂️

Thanks again, I'll add my working config below, and try to contribute it to the project as well.

docker-compose.yml

version: "3.9"

networks:
        web:
                external: true
        internal:
                external: false
                driver: bridge

services:
        caddy:
                container_name: caddy
                image: caddy:2-alpine
                restart: unless-stopped
                ports:
                        - "80:80"
                        - "443:443"
                volumes:
                        …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@spencerflagg
Comment options

@spencerflagg
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by spencerflagg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #165 on March 16, 2022 11:23.