28 lines
842 B
YAML
28 lines
842 B
YAML
|
|
# Production HTTPS overlay for bargevasat.ir.
|
||
|
|
# Caddy terminates TLS (auto Let's Encrypt) and reverse-proxies:
|
||
|
|
# https://bargevasat.ir → web (nginx static)
|
||
|
|
# https://api.bargevasat.ir → server (.NET SignalR)
|
||
|
|
# Run: docker compose -f docker-compose.yml -f docker-compose.caddy.yml up -d
|
||
|
|
# (web/server are reached over the compose network by name; their host port
|
||
|
|
# publishes from docker-compose.yml are harmless but optional in prod.)
|
||
|
|
|
||
|
|
services:
|
||
|
|
caddy:
|
||
|
|
image: mirror.soroushasadi.com/caddy:2-alpine
|
||
|
|
container_name: hokm-caddy
|
||
|
|
restart: unless-stopped
|
||
|
|
depends_on:
|
||
|
|
- web
|
||
|
|
- server
|
||
|
|
ports:
|
||
|
|
- "80:80"
|
||
|
|
- "443:443"
|
||
|
|
volumes:
|
||
|
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||
|
|
- hokm_caddy_data:/data
|
||
|
|
- hokm_caddy_config:/config
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
hokm_caddy_data:
|
||
|
|
hokm_caddy_config:
|