Skip to content

Commit

Permalink
add: autodeployment configuration with watchtower
Browse files Browse the repository at this point in the history
  • Loading branch information
kymppi committed Oct 16, 2022
1 parent b5fde2d commit 9a31f13
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
DISCORD_TOKEN=
GUILD_ID=

# webhook url for autodeployment notifications, works with discord too if you add /slack to the end
DEPLOY_SLACK_WEBHOOK_URL=
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,21 @@ services:
bot:
image: ghcr.io/hacksquaddev/discord-rust:main
# build: .
container_name: hacksquad-rust-bot
environment:
- DISCORD_TOKEN=${DISCORD_TOKEN}
- REDIS_URI=redis://redis/

redis:
image: redis:latest

watchtower:
image: containrrr/watchtower
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 500 hacksquad-rust-bot
environment:
- WATCHTOWER_NOTIFICATIONS=slack
# works with discord if you add /slack to the end
- WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL=${DEPLOY_SLACK_WEBHOOK_URL}

0 comments on commit 9a31f13

Please sign in to comment.