thecr3w-dev/infrastructure/docker/docker-compose.forgejo.yml

36 lines
828 B
YAML

version: '3.8'
networks:
proxy:
external: true
forgejo_internal:
driver: bridge
internal: true
volumes:
forgejo_data:
driver: local
services:
forgejo:
image: codeberg.org/forgejo/forgejo:9.0-rootless
container_name: forgejo
restart: unless-stopped
environment:
- USER_UID=1000
- USER_GID=1000
- FORGEJO__server__DOMAIN=git.thecr3wnet.com
- FORGEJO__server__ROOT_URL=https://git.thecr3wnet.com/
- FORGEJO__server__HTTP_PORT=3000
- FORGEJO__packages__ENABLED=true
- FORGEJO__actions__ENABLED=true
volumes:
- forgejo_data:/var/lib/gitea
networks:
- proxy
- forgejo_internal
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/v1/version"]
interval: 15s
timeout: 5s
retries: 3