dotfiles/roles/forgejo/templates/forgejo.container
Matej Focko 2a1bc28205
chore(forgejo): bump to the next version
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-28 09:02:16 +01:00

30 lines
626 B
Text

# {{ ansible_managed }}
[Unit]
Description=Forgejo
After=postgresql.service
Requires=postgresql.service
[Container]
ContainerName=forgejo
Image=codeberg.org/forgejo/forgejo:10
AutoUpdate=registry
Environment=USER_UID=1000
Environment=USER_GID=1000
Environment=TZ=Europe/Prague
Environment=START_SSH_SERVER=true
Environment=SSH_CREATE_AUTHORIZED_PRINCIPALS_FILES=true
Environment=SSH_AUTHORIZED_PRINCIPALS_ALLOW="username,email"
Network=forgejo.network
PublishPort={{ forgejo_ssh_port }}:22
PublishPort={{ forgejo_http_port }}:3000
Volume=forgejo-data:/data
[Service]
Restart=always
[Install]
WantedBy=multi-user.target