mirror of
https://github.com/tommytran732/Fedora-CoreOS-Ignition
synced 2024-09-07 17:13:30 -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"
|
"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,
|
"enabled": false,
|
||||||
"name": "docker-compose-updater.service"
|
"name": "docker-compose-updater.service"
|
||||||
},
|
},
|
||||||
|
@ -136,12 +136,10 @@ systemd:
|
|||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/path/to/directory
|
WorkingDirectory=/path/to/directory
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/docker image prune -f
|
||||||
#ExecStart=/usr/bin/git pull
|
#ExecStart=/usr/bin/git pull
|
||||||
ExecStart=/usr/bin/docker compose pull
|
ExecStart=/usr/bin/docker compose pull
|
||||||
ExecStart=/usr/bin/docker compose up -d
|
ExecStart=/usr/bin/docker compose up -d
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
- name: docker-compose-updater.timer
|
- name: docker-compose-updater.timer
|
||||||
enabled: false
|
enabled: false
|
||||||
contents: |
|
contents: |
|
||||||
|
Loading…
Reference in New Issue
Block a user