initial commit
This commit is contained in:
15
templates/gitea.service.j2
Normal file
15
templates/gitea.service.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Gitea Git Server
|
||||
Requires=docker.service
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
WorkingDirectory=/opt/gitea
|
||||
ExecStart=/opt/gitea/start-gitea.sh
|
||||
ExecStop=/usr/bin/docker-compose -f /opt/gitea/docker-compose.yml down
|
||||
User={{ ansible_user }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user