services:
forge:
build: .
image: forge
restart: unless-stopped
ports:
# Only on localhost: put a reverse proxy (Caddy, nginx, Traefik) in front for HTTPS.
# Use "8080:8080" instead to expose it directly.
- "127.0.0.1:8080:8080"
environment:
# The address users actually visit. https:// also makes cookies Secure.
Forge__BaseUrl: https://git.example.com
Forge__MaxPushSizeMb: 500
volumes:
- forge-data:/data
volumes:
forge-data: