57 lines
1.2 KiB
YAML
Executable file
57 lines
1.2 KiB
YAML
Executable file
services:
|
|
forgejo:
|
|
image: codeberg.org/forgejo/forgejo:11
|
|
networks:
|
|
- netgrimoire
|
|
|
|
environment:
|
|
USER_UID: "1001"
|
|
USER_GID: "998"
|
|
TZ: America/Chicago
|
|
|
|
# Match your standard UID:GID execution model
|
|
#user: "1001:998"
|
|
|
|
volumes:
|
|
- /DockerVol/forgejo:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
ports:
|
|
- target: 3000
|
|
published: 3024
|
|
protocol: tcp
|
|
mode: ingress
|
|
- target: 22
|
|
published: 222
|
|
protocol: tcp
|
|
mode: ingress
|
|
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.hostname == docker2
|
|
|
|
labels:
|
|
# Homepage
|
|
homepage.group: "Applications"
|
|
homepage.name: "Forgejo"
|
|
homepage.icon: "forgejo.png"
|
|
homepage.href: "https://git.netgrimoire.com"
|
|
homepage.description: "Git Repository"
|
|
|
|
# Kuma
|
|
kuma.git.http.name: "Forgejo"
|
|
kuma.git.http.url: "http://forgejo:3000"
|
|
|
|
# Caddy
|
|
caddy: "git.netgrimoire.com"
|
|
# caddy.import: "authentik"
|
|
caddy.reverse_proxy: "forgejo:3000"
|
|
|
|
# Diun (image update monitoring)
|
|
diun.enable: "true"
|
|
|
|
networks:
|
|
netgrimoire:
|
|
external: true
|