24 lines
481 B
Plaintext
24 lines
481 B
Plaintext
[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 |