Skip to content

Instantly share code, notes, and snippets.

@arsalanses
Created October 7, 2024 19:52
Show Gist options
  • Save arsalanses/23bd1e011bb9f75f55dd515b8385f312 to your computer and use it in GitHub Desktop.
Save arsalanses/23bd1e011bb9f75f55dd515b8385f312 to your computer and use it in GitHub Desktop.
opengist
services:
caddy:
image: docker.arvancloud.ir/caddy:2.8-alpine
restart: unless-stopped
command: caddy reverse-proxy --access-log --from https://git.domain.com:443 --to http://opengist:6157 { metrics /metrics }
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- caddy:/data
depends_on:
- opengist
opengist:
image: ghcr.io/thomiceli/opengist:1.7
container_name: opengist
restart: unless-stopped
environment:
- OG_EXTERNAL_URL=https://git.arsalanse.ir
ports:
- "127.0.0.1:6157:6157"
#- "2222:2222" # SSH port, can be removed if you don't use SSH
volumes:
- "./opengist:/opengist"
volumes:
caddy:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment