Update docker-compose-updater.service

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-04-09 15:15:34 -07:00
parent e579cf0cf1
commit 7b62e6d24f
No known key found for this signature in database
GPG Key ID: 555C902A34EC968F
2 changed files with 2 additions and 4 deletions

View File

@ -247,7 +247,7 @@
"name": "gvisor-updater.service"
},
{
"contents": "[Unit]\nDescription=Update containers with Docker-Compose\nRequires=network-online.target\nRequires=docker.service\n\n[Service]\nWorkingDirectory=/path/to/directory\nType=oneshot\n#ExecStart=/usr/bin/git pull\nExecStart=/usr/bin/docker compose pull\nExecStart=/usr/bin/docker compose up -d\n\n[Install]\nWantedBy=multi-user.target\n",
"contents": "[Unit]\nDescription=Update containers with Docker-Compose\nRequires=network-online.target\nRequires=docker.service\n\n[Service]\nWorkingDirectory=/path/to/directory\nType=oneshot\nExecStart=/usr/bin/docker image prune -f\n#ExecStart=/usr/bin/git pull\nExecStart=/usr/bin/docker compose pull\nExecStart=/usr/bin/docker compose up -d\n",
"enabled": false,
"name": "docker-compose-updater.service"
},

View File

@ -136,12 +136,10 @@ systemd:
[Service]
WorkingDirectory=/path/to/directory
Type=oneshot
ExecStart=/usr/bin/docker image prune -f
#ExecStart=/usr/bin/git pull
ExecStart=/usr/bin/docker compose pull
ExecStart=/usr/bin/docker compose up -d
[Install]
WantedBy=multi-user.target
- name: docker-compose-updater.timer
enabled: false
contents: |