added inbucket docker compose etc.
This commit is contained in:
parent
1a2a60e719
commit
5dc9906976
5 changed files with 32 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
- {role: 'jitsi', tags: 'jitsi'}
|
- {role: 'jitsi', tags: 'jitsi'}
|
||||||
- {role: 'freshrss', tags: 'freshrss'}
|
- {role: 'freshrss', tags: 'freshrss'}
|
||||||
- {role: 'blog', tags: 'blog'}
|
- {role: 'blog', tags: 'blog'}
|
||||||
|
- {role: 'inbucket', tags: 'inbucket'}
|
||||||
- name: Setup dataserver
|
- name: Setup dataserver
|
||||||
hosts: dataserver
|
hosts: dataserver
|
||||||
roles:
|
roles:
|
||||||
|
|
11
roles/inbucket/files/docker-compose.yml
Normal file
11
roles/inbucket/files/docker-compose.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
version: "3.7"
|
||||||
|
|
||||||
|
services:
|
||||||
|
kms-server:
|
||||||
|
image: inbucket/inbucket
|
||||||
|
container_name: inbucket
|
||||||
|
ports:
|
||||||
|
- 2500:2500
|
||||||
|
- 9000:9000
|
||||||
|
restart: always
|
||||||
|
|
4
roles/inbucket/meta/main.yml
Normal file
4
roles/inbucket/meta/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
dependencies:
|
||||||
|
- role: common
|
||||||
|
- role: docker
|
||||||
|
|
14
roles/inbucket/tasks/main.yml
Normal file
14
roles/inbucket/tasks/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
- name: Create app directory
|
||||||
|
file:
|
||||||
|
path: "{{ service_dir }}"
|
||||||
|
state: directory
|
||||||
|
- name: Copy Docker Compose script
|
||||||
|
copy:
|
||||||
|
src: "{{ role_path }}/files/docker-compose.yml"
|
||||||
|
dest: "{{ service_dir }}/docker-compose.yml"
|
||||||
|
- name: Start the Docker Compose
|
||||||
|
docker_compose:
|
||||||
|
project_src: "{{ service_dir }}"
|
||||||
|
pull: true
|
||||||
|
remove_orphans: true
|
||||||
|
|
2
roles/inbucket/vars/main.yml
Normal file
2
roles/inbucket/vars/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
service_name: inbucket
|
||||||
|
service_dir: "{{ base_service_dir }}/{{ service_name }}"
|
Reference in a new issue