mirror of
https://github.com/tommytran732/Fedora-CoreOS-Ignition.git
synced 2024-10-01 01:15:36 -04:00
Update docker-compose-updater.service
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
e579cf0cf1
commit
7b62e6d24f
@ -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"
|
||||
},
|
||||
|
@ -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: |
|
||||
|
Loading…
Reference in New Issue
Block a user