Created
October 7, 2024 19:52
-
-
Save arsalanses/23bd1e011bb9f75f55dd515b8385f312 to your computer and use it in GitHub Desktop.
opengist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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