Compare commits
1 Commits
150efee902
...
79e1cdd5bc
Author | SHA1 | Date | |
---|---|---|---|
79e1cdd5bc |
@ -10,3 +10,4 @@
|
|||||||
- docker
|
- docker
|
||||||
- gitea
|
- gitea
|
||||||
- bitwarden
|
- bitwarden
|
||||||
|
- kutt
|
||||||
|
3
roles/.gitignore
vendored
3
roles/.gitignore
vendored
@ -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
16
roles/kutt/tasks/main.yml
Normal 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
|
36
roles/kutt/templates/docker-compose.yml.j2
Normal file
36
roles/kutt/templates/docker-compose.yml.j2
Normal 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 }}:
|
Loading…
Reference in New Issue
Block a user