Configure non-docker apps to proxy to host.docker.internal Configure triliumnext-notes to use port 8080 Add host.docker.internal to caddy docker-compose Explicitly specify .env file for caddy container Remove port expose for triliumnext-notes container
36 lines
591 B
YAML
36 lines
591 B
YAML
name: caddy
|
|
services:
|
|
app:
|
|
build: .
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
networks:
|
|
- proxy-net
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
- "443:443/udp"
|
|
- "2019:2019"
|
|
configs:
|
|
- source: caddyfile
|
|
target: /etc/caddy/Caddyfile
|
|
volumes:
|
|
- ./data/site:/srv
|
|
- ./data/logs:/logs
|
|
- caddy_data:/data
|
|
- caddy_config:/config
|
|
|
|
networks:
|
|
proxy-net:
|
|
external: true
|
|
|
|
configs:
|
|
caddyfile:
|
|
file: ./Caddyfile
|
|
|
|
volumes:
|
|
caddy_data:
|
|
caddy_config:
|