Add gitea/gitea.container
This commit is contained in:
24
gitea/gitea.container
Normal file
24
gitea/gitea.container
Normal file
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=Gitea
|
||||
|
||||
[Container]
|
||||
ContainerName=gitea
|
||||
Image=docker.gitea.com/gitea:latest-rootless
|
||||
PublishPort=3000:3000
|
||||
PublishPort=2222:2222
|
||||
Volume=gitea-config:/etc/gitea
|
||||
Volume=gitea-data:/var/lib/gitea
|
||||
#Volume=/etc/timezone:/etc/timezone:ro
|
||||
#Volume=/etc/localtime:/etc/localtime:ro
|
||||
EnvironmentFile=gitea.env
|
||||
|
||||
[Service]
|
||||
User=1000
|
||||
Group=1000
|
||||
Restart=unless-stopped
|
||||
|
||||
# Give the container a moment to shut down gracefully
|
||||
TimeoutStopSec=30
|
||||
|
||||
#[Install]
|
||||
#WantedBy=default.target
|
||||
Reference in New Issue
Block a user