Initial version
This commit is contained in:
Generated
+3
@@ -0,0 +1,3 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
Generated
+6
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
Generated
+8
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/watchtower.iml" filepath="$PROJECT_DIR$/.idea/watchtower.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
Generated
+6
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
Generated
+9
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
services:
|
||||||
|
watchtower:
|
||||||
|
image: containrrr/watchtower:latest
|
||||||
|
container_name: WATCHTOWER
|
||||||
|
hostname: watchtower
|
||||||
|
mem_limit: 512m
|
||||||
|
mem_reservation: 128m
|
||||||
|
cpu_shares: 512
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges=true
|
||||||
|
read_only: true
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
environment:
|
||||||
|
TZ: Europe/Bucharest
|
||||||
|
WATCHTOWER_CLEANUP: true # Remove old images after updating
|
||||||
|
WATCHTOWER_REMOVE_VOLUMES: false # Remove attached volumes after updating
|
||||||
|
DOCKER_API_VERSION: 1.45 # SSH docker version 1.41 for Docker engine version 20.10 - 1.43 for Docker engine version 24 - 1.45 for Docker engine version 26.1
|
||||||
|
WATCHTOWER_INCLUDE_RESTARTING: true # Restart containers after update
|
||||||
|
WATCHTOWER_INCLUDE_STOPPED: false # Update stopped containers
|
||||||
|
WATCHTOWER_SCHEDULE: "0 0 */2 * * *" # Update & Scan containers every 2 hours
|
||||||
|
WATCHTOWER_LABEL_ENABLE: false
|
||||||
|
WATCHTOWER_ROLLING_RESTART: true
|
||||||
|
WATCHTOWER_TIMEOUT: 30s
|
||||||
|
WATCHTOWER_LOG_FORMAT: pretty
|
||||||
|
restart: on-failure:5
|
||||||
Reference in New Issue
Block a user