Skip to content

Commit

Permalink
Update docker image to use new env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
solomon-b committed Dec 20, 2022
1 parent d0b8dc0 commit 52770da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ services:
cofree-bot:
image: ghcr.io/cofree-coffee/cofree-bot:latest
environment:
- AUTH_TOKEN=$AUTH_TOKEN
- COFREE_BOT_MATRIX_TOKEN=$COFREE_BOT_MATRIX_TOKEN
- COFREE_BOT_MATRIX_SERVER=$COFREE_BOT_MATRIX_SERVER
- XDG_CACHE_HOME=/cache
- XDG_CONFIG_HOME=/config
deploy:
restart_policy:
condition: on-failure
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json
- bot_cache:/cache
- bot_config:/config
watchtower:
image: containrrr/watchtower
volumes:
Expand All @@ -22,4 +25,5 @@ services:
restart_policy:
condition: on-failure
volumes:
bot_cache:
bot_cache:
bot_config:
2 changes: 1 addition & 1 deletion nix/docker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pkgs.dockerTools.buildLayeredImage {
Entrypoint = "${pkgs.bash}/bin/bash";
Cmd = [
"-c"
"${pkgs.haskell.lib.justStaticExecutables cofree-bot}/bin/cofree-bot run --auth_token $AUTH_TOKEN --homeserver https://matrix.cofree.coffee"
"${pkgs.haskell.lib.justStaticExecutables cofree-bot}/bin/cofree-bot run"
];
};
}
Expand Down

0 comments on commit 52770da

Please sign in to comment.