mirror of
				https://github.com/TommyTran732/Fedora-CoreOS-Ignition.git
				synced 2025-11-04 11:08:35 +01:00 
			
		
		
		
	Update docker-compose-updater.service
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
		@@ -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: |
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user