This repository has been archived on 2023-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
max/roles/forgejo/files/docker-compose.yml

34 lines
1 KiB
YAML
Raw Normal View History

2023-01-06 14:45:21 +00:00
version: "3"
networks:
traefik:
external: true
services:
server:
image: codeberg.org/forgejo/forgejo:1.18
container_name: forgejo
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- traefik
volumes:
- /data/forgejo:/data
2023-01-06 16:35:36 +00:00
- /apps/forgejo/conf:/data/gitea/conf
2023-01-06 14:45:21 +00:00
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
labels:
- traefik.http.routers.forgejo.entrypoints=websecure
- traefik.http.routers.forgejo.rule=Host(`git.pizzapim.nl`)
- traefik.http.routers.forgejo.tls=true
- traefik.http.routers.forgejo.tls.certresolver=pizzapim
2023-01-06 16:35:36 +00:00
- traefik.tcp.routers.forgejo-ssh.service=forgejo
2023-01-06 14:45:21 +00:00
- traefik.http.services.forgejo.loadbalancer.server.port=3000
2023-01-06 16:35:36 +00:00
- traefik.tcp.routers.forgejo-ssh.rule=HostSNI(`*`)
- traefik.tcp.routers.forgejo-ssh.entrypoints=ssh
- traefik.tcp.routers.forgejo-ssh.service=forgejo-ssh
- traefik.tcp.services.forgejo-ssh.loadbalancer.server.port=22