diff --git a/new/playbooks/basic-setup.yml b/new/playbooks/basic-setup.yml index 741da9c..c20c3b4 100644 --- a/new/playbooks/basic-setup.yml +++ b/new/playbooks/basic-setup.yml @@ -10,6 +10,10 @@ with_items: - docker.io - docker-compose + - name: Install fish + ansible.builtin.apt: + name: "fish" + state: present - name: Install keyring packages ansible.builtin.apt: name: "{{ item }}" diff --git a/new/playbooks/vps2.yml b/new/playbooks/vps2.yml index 621f121..f49d557 100644 --- a/new/playbooks/vps2.yml +++ b/new/playbooks/vps2.yml @@ -35,6 +35,14 @@ state: directory mode: u=rwx,g=rx,o=rx ##### + # APP: killua bot, /apps/killua + ##### + - name: Create /apps/killua + ansible.builtin.file: + path: /apps/registry + state: directory + mode: u=rwx,g=rx,o=rx + ##### # END: docker compose up! ##### # We want this to be last so that all app-specific config has been done. diff --git a/new/vps2/docker-compose.yml b/new/vps2/docker-compose.yml index 3fe7454..b7ba49c 100644 --- a/new/vps2/docker-compose.yml +++ b/new/vps2/docker-compose.yml @@ -1,4 +1,4 @@ -version: '3.8' +version: "3.8" services: registry: container_name: registry @@ -12,12 +12,21 @@ services: - "5000:5000" widetom: container_name: widetom - image: docker.nilstrieb.dev/widetom:490c94ca + image: "docker.nilstrieb.dev/widetom:490c94ca" restart: always volumes: - "/apps/widetom:/app/config" environment: CONFIG_PATH: /app/config/config.toml BOT_TOKEN_PATH: /app/config/bot_token + killua: + container_name: killua + image: "docker.nilstrieb.dev/killua-bot:ac8203d2" + restart: always + volumes: + - "/apps/killua:/app/config" + environment: + BOT_TOKEN: "${KILLUA_BOT_TOKEN}" + KILLUA_JSON_PATH: /app/config/trivia_questions.json # TODO: create an internal network and move caddy there as well.