mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
killua!
This commit is contained in:
parent
22b8ec58bd
commit
313791b3c1
3 changed files with 23 additions and 2 deletions
|
|
@ -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 }}"
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue