dotfiles/roles/forgejo/templates/forgejo.container
Matej Focko 5057b9fed1
feat(forgejo): add quadlet deployment
Related to #51

Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-11-14 15:40:40 +01:00

25 lines
490 B
Text

[Unit]
Description=Forgejo
[Container]
ContainerName=forgejo
Image=codeberg.org/forgejo/forgejo:9
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=2222:22
PublishPort=3000:3000
Volume=forgejo-data:/data
[Service]
Restart=always
[Install]
WantedBy=multi-user.target