Skip to content

Commit

Permalink
ci: Introduce Watchtower
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Nov 24, 2024
1 parent 8e4d86d commit 43f9b05
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,28 @@ services:
ports:
- 3001:3001
env_file:
- .env.production # for N8N_SHORTLINK_SENTRY_DSN
- .env.production # only for N8N_SHORTLINK_SENTRY_DSN
environment:
- N8N_SHORTLINK_HOST=0.0.0.0
- N8N_SHORTLINK_ENVIRONMENT=production
volumes:
- ${HOME}/.n8n-shortlink:/root/.n8n-shortlink
restart: unless-stopped
labels:
- "com.centurylinklabs.watchtower.enable=true"
networks:
- n8n-shortlink-network

watchtower:
image: containrrr/watchtower
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_LABEL_ENABLE=true
- WATCHTOWER_POLL_INTERVAL=21600 # every 6 hours
restart: unless-stopped
networks:
- n8n-shortlink-network

Expand Down

0 comments on commit 43f9b05

Please sign in to comment.