remove bundled caddy — connect to existing caddy container
This commit is contained in:
1 parent
a76116608d
commit
d67e78e4e0
1 file changed
+7
-20
+7
-20
@@ -1,31 +1,18 @@
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
caddy:
|
|
||||||
image: caddy:latest
|
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
|
||||||
- "80:80"
|
|
||||||
- "443:443"
|
|
||||||
volumes:
|
|
||||||
# Shared Caddyfile directory — both services mount the same path
|
|
||||||
- ./caddy:/etc/caddy
|
|
||||||
- caddy_data:/data
|
|
||||||
- caddy_config:/config
|
|
||||||
# NOTE: Your Caddyfile must contain `admin :2019` in the global block
|
|
||||||
# for KonCad to communicate with Caddy. See caddy/Caddyfile.example
|
|
||||||
|
|
||||||
koncad:
|
koncad:
|
||||||
build: .
|
build: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./caddy:/etc/caddy
|
# Mount your existing Caddy config directory
|
||||||
|
- /opt/caddy:/etc/caddy
|
||||||
environment:
|
environment:
|
||||||
CADDY_ADMIN_URL: http://caddy:2019
|
CADDY_ADMIN_URL: http://caddy:2019
|
||||||
depends_on:
|
networks:
|
||||||
- caddy
|
- caddy_net
|
||||||
|
|
||||||
volumes:
|
networks:
|
||||||
caddy_data:
|
caddy_net:
|
||||||
caddy_config:
|
external: true
|
||||||
Reference in new issue
Block a user