mn,
This commit is contained in:
parent
d674ad9a59
commit
615cad9a78
1 changed files with 41 additions and 21 deletions
60
forgejo.yaml
60
forgejo.yaml
|
|
@ -1,37 +1,57 @@
|
|||
|
||||
services:
|
||||
forjejo:
|
||||
forgejo:
|
||||
image: codeberg.org/forgejo/forgejo:11
|
||||
container_name: forgejo
|
||||
environment:
|
||||
- USER_UID=1001
|
||||
- USER_GID=998
|
||||
restart: always
|
||||
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:
|
||||
- '3024:3000'
|
||||
- '222:22'
|
||||
- target: 3000
|
||||
published: 3024
|
||||
protocol: tcp
|
||||
mode: ingress
|
||||
- target: 22
|
||||
published: 222
|
||||
protocol: tcp
|
||||
mode: ingress
|
||||
|
||||
deploy:
|
||||
labels:
|
||||
- homepage.group=Application
|
||||
- homepage.name=Forgejo
|
||||
- homepage.icon=forgejo.png
|
||||
- homepage.href=https://git.netgrimoire.com
|
||||
- homepage.description=Git Repository
|
||||
- kuma.git.http.name="Forgejo"
|
||||
- kuma.git.http.url=http://forjejo:3000
|
||||
- caddy=git.netgrimoire.com
|
||||
# - caddy.import=authentik
|
||||
- caddy.reverse_proxy="{{upstreams 3000}}"
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue