Implementation of server and reverse proxy

This commit is contained in:
2025-01-13 23:39:31 +00:00
parent bf7d9b78e5
commit cc8b925c4d

38
docker-compose.yaml Normal file
View File

@@ -0,0 +1,38 @@
version: "3.8"
networks:
am-d-model-network:
name: am-d-model-network
services:
site:
build: .
networks:
- host
- am-d-model-network
restart: unless-stopped
caddy:
image: caddy:latest
networks:
- am-d-model-network
ports:
- "3000:80"
volumes:
- caddy_data:/data
- caddy_config:/config
command: >
sh -c "wget -O /etc/caddy/Caddyfile https://raw.githubusercontent.com/Cian-H/am-d-model.eu/refs/heads/main/conf/Caddyfile &&
caddy run --config /etc/caddy/Caddyfile"
restart: unless-stopped
# watchtower:
# image: containrrr/watchtower
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# command: --interval 30 --cleanup
# restart: unless-stopped
volumes:
caddy_data:
caddy_config: