mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented vars, tasks and templates for central database setup until mastodon role
This commit is contained in:
@@ -4,47 +4,40 @@ services:
|
||||
image: attendize_web:latest
|
||||
ports:
|
||||
- "{{http_port}}:80"
|
||||
#- "8081:443"
|
||||
volumes:
|
||||
- .:/usr/share/nginx/html
|
||||
- .:/var/www
|
||||
depends_on:
|
||||
{% if not enable_central_database %}
|
||||
- database
|
||||
{% endif %}
|
||||
- maildev
|
||||
- redis
|
||||
- worker
|
||||
{% include 'templates/docker-depends-on-central-database.yml.j2' %}
|
||||
maildev:
|
||||
redis:
|
||||
worker:
|
||||
env_file:
|
||||
- ./.env
|
||||
{% include 'templates/docker-networks-for-container.yml.j2' %}
|
||||
|
||||
worker:
|
||||
image: attendize_worker:latest
|
||||
depends_on:
|
||||
{% if not enable_central_database %}
|
||||
- database
|
||||
{% endif %}
|
||||
- maildev
|
||||
- redis
|
||||
{% include 'templates/docker-depends-on-central-database.yml.j2' %}
|
||||
maildev:
|
||||
redis:
|
||||
{% include 'templates/docker-networks-for-container.yml.j2' %}
|
||||
volumes:
|
||||
- .:/usr/share/nginx/html
|
||||
- .:/var/www
|
||||
|
||||
{% include 'templates/docker-{{ database_type }}-service.yml.j2' %}
|
||||
|
||||
maildev:
|
||||
image: maildev/maildev
|
||||
ports:
|
||||
- "{{ mail_interface_http_port }}:1080"
|
||||
|
||||
{% include 'templates/docker-networks-for-container.yml.j2' %}
|
||||
{% include 'templates/docker-depends-on-central-database.yml.j2' %}
|
||||
|
||||
{% include 'templates/docker-redis-service.yml.j2' %}
|
||||
|
||||
{% if not enable_central_database %}
|
||||
depends_on:
|
||||
- database
|
||||
|
||||
{% include 'templates/docker-mariadb-service.yml.j2' %}
|
||||
{% endif %}
|
||||
|
||||
volumes:
|
||||
redis:
|
||||
{% if not enable_central_database %}
|
||||
database:
|
||||
{% endif %}
|
||||
{% include 'templates/docker-database-volume.yml.j2' %}
|
||||
|
||||
{% include 'templates/docker-networks-for-role.yml.j2' %}
|
Reference in New Issue
Block a user