Automate immutable production deployments
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Neues Watermaps-Release aus der Gitea Registry deployen
|
||||
Wants=network-online.target
|
||||
After=network-online.target docker.service watermaps-volume-setup.service
|
||||
Requires=docker.service
|
||||
RequiresMountsFor=/srv/watermaps-data
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/opt/watermaps
|
||||
Environment=WATERMAPS_ENV_FILE=/opt/watermaps/deploy/.env.production
|
||||
Environment=WATERMAPS_IMAGES_ENV_FILE=/opt/watermaps/deploy/.env.images
|
||||
ExecStart=/usr/local/sbin/watermaps-auto-deploy
|
||||
TimeoutStartSec=12h
|
||||
UMask=0027
|
||||
Nice=5
|
||||
IOSchedulingClass=best-effort
|
||||
IOSchedulingPriority=5
|
||||
Reference in New Issue
Block a user