Add quassel config

This commit is contained in:
Jake Howard 2020-02-09 13:19:45 +00:00
parent 77fe92a7e7
commit 0da675db1c
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,34 @@
version: "3"
services:
quassel-core:
image: linuxserver/quassel-core:0.13.1-ls39
container_name: quassel
environment:
- PUID={{ docker_user.id }}
- PGID={{ docker_user.id }}
- TZ=Europe/London
- DB_BACKEND=PostgreSQL
- DB_PGSQL_USERNAME=quassel
- DB_PGSQL_PASSWORD=quassel
- DB_PGSQL_HOSTNAME=db
- DB_PGSQL_PORT=5432
- AUTH_AUTHENTICATOR=Database
- RUN_OPTS=--config-from-environment
restart: unless-stopped
depends_on:
- db
ports:
- "{{ wireguard.clients.intersect.ip }}:4242:4242"
db:
image: postgres:12-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=quassel
- POSTGRES_PASSWORD=quassel
volumes:
- ./postgresql:/var/lib/postgresql/data
tor-socks-proxy:
image: peterdavehello/tor-socks-proxy:latest
restart: unless-stopped

View file

@ -45,3 +45,6 @@
- name: Install torrent
include: torrent.yml
- name: Install quassel
include: quassel.yml

View file

@ -0,0 +1,31 @@
- name: Create quassel directory
file:
path: '/opt/quassel'
state: directory
owner: "{{ docker_user.name }}"
mode: "{{ docker_compose_directory_mask }}"
become: true
become_user: root
- name: Install quassel compose file
template:
src: files/quassel/docker-compose.yml
dest: "/opt/quassel/docker-compose.yml"
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
validate: /usr/bin/docker-compose -f %s config
register: compose_file
become: true
become_user: root
- name: Cycle quassel container
docker_compose:
project_src: /opt/quassel
pull: true
remove_orphans: true
remove_volumes: true
state: "{{ item }}"
when: compose_file.changed
loop:
- absent
- present