Defined top level name for all services Added proxy-net to services Updated main service/server container service name to "app" Updated hostname references to projectname-app-1 Updated docker Caddy caddyfile to reference container names Updated docker Caddy caddyfile to use 192.168.1.234 instead of localhost for non-docker services Adjusted caddyfile accordingly
32 lines
510 B
YAML
32 lines
510 B
YAML
name: caddy
|
|
services:
|
|
app:
|
|
build: .
|
|
restart: unless-stopped
|
|
networks:
|
|
- proxy-net
|
|
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: |