Compare commits

...

1 Commits

Author SHA1 Message Date
79e1cdd5bc testing 2022-10-22 22:32:11 -04:00
4 changed files with 56 additions and 0 deletions

View File

@ -10,3 +10,4 @@
- docker - docker
- gitea - gitea
- bitwarden - bitwarden
- kutt

3
roles/.gitignore vendored
View File

@ -1,11 +1,14 @@
# Sort roles: tail -n +6 roles/.gitignore | sort
/* /*
!.gitignore !.gitignore
!requirements.yml !requirements.yml
# roles
!base*/ !base*/
!bitwarden*/ !bitwarden*/
!docker*/ !docker*/
!gitea*/ !gitea*/
!jenkins*/ !jenkins*/
!kutt*/
!libvirt*/ !libvirt*/
!mariadb*/ !mariadb*/
!minecraft*/ !minecraft*/

16
roles/kutt/tasks/main.yml Normal file
View File

@ -0,0 +1,16 @@
- name: Create Kutt directory
file:
path: "{{ kutt_root }}"
state: directory
- name: Install Kutt's docker-compose file
template:
src: docker-compose.yml.j2
dest: "{{ kutt_root }}/docker-compose.yml"
notify: restart_kutt
- name: Install Kutt's docker-compose variables
template:
src: compose-env.j2
dest: "{{ kutt_root }}/.env"
notify: restart_kutt

View File

@ -0,0 +1,36 @@
version: "3.7"
services:
kutt:
image: kutt/kutt:${kutt_version:-latest}
container_name: ${kutt_name:-kutt}
depends_on:
- postgres
- redis
command: ["./wait-for-it.sh", "postgres:5432", "--", "npm", "start"]
ports:
- ${kutt_web:-3000}:3000
environment:
DB_HOST: ${kutt_dbhost:-postgres}
DB_NAME: ${kutt_dbname:-kutt}
DB_USER: ${kutt_dbuser:-kutt}
DB_PASSWORD: ${kutt_dbpass}
REDIS_HOST: ${kutt_redis:-redis}
redis:
image: redis:${redis_version:-6.0-alpine}
volumes:
- {{ redis_volume }}:/data
postgres:
image: postgres:${postgres_version:-12-alpine}
environment:
POSTGRES_USER: ${kutt_dbuser:-kutt}
POSTGRES_PASSWORD: ${kutt_dbpass}
POSTGRES_DB: ${kutt_dbhost:-postgres}
volumes:
- {{ postgres_volume }}:/var/lib/postgresql/data
volumes:
{{ redis_volume }}:
{{ postgres_volume }}: