2024-11-15 16:50:11 +01:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
2024-11-14 15:40:40 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Forgejo
|
2024-11-27 17:57:35 +01:00
|
|
|
After=postgresql.service
|
|
|
|
Requires=postgresql.service
|
2024-11-14 15:40:40 +01:00
|
|
|
|
|
|
|
[Container]
|
|
|
|
ContainerName=forgejo
|
|
|
|
Image=codeberg.org/forgejo/forgejo:9
|
2024-11-18 15:48:02 +01:00
|
|
|
AutoUpdate=registry
|
2024-11-14 15:40:40 +01:00
|
|
|
|
|
|
|
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
|
2024-11-18 15:31:15 +01:00
|
|
|
PublishPort={{ forgejo_ssh_port }}:22
|
|
|
|
PublishPort={{ forgejo_http_port }}:3000
|
2024-11-14 15:40:40 +01:00
|
|
|
|
|
|
|
Volume=forgejo-data:/data
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|