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:
@@ -1,6 +1,11 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
|
||||
{% include 'templates/docker-{{ database_type }}-service.yml.j2' %}
|
||||
|
||||
{% include 'templates/docker-redis-service.yml.j2' %}
|
||||
|
||||
application:
|
||||
image: zknt/pixelfed
|
||||
restart: always
|
||||
@@ -14,11 +19,8 @@ services:
|
||||
- "./env:/var/www/.env"
|
||||
ports:
|
||||
- "{{http_port}}:80"
|
||||
depends_on:
|
||||
{% if not enable_central_database %}
|
||||
- database
|
||||
{% endif %}
|
||||
- redis
|
||||
{% include 'templates/docker-depends-on-central-database.yml.j2' %}
|
||||
redis:
|
||||
worker:
|
||||
image: zknt/pixelfed
|
||||
restart: always
|
||||
@@ -36,22 +38,12 @@ services:
|
||||
interval: 60s
|
||||
timeout: 5s
|
||||
retries: 1
|
||||
depends_on:
|
||||
- redis
|
||||
- application
|
||||
{% if not enable_central_database %}
|
||||
|
||||
- database
|
||||
|
||||
{% include 'templates/docker-mariadb-service.yml.j2' %}
|
||||
{% endif %}
|
||||
|
||||
{% include 'templates/docker-redis-service.yml.j2' %}
|
||||
{% include 'templates/docker-depends-on-central-database.yml.j2' %}
|
||||
redis:
|
||||
application:
|
||||
|
||||
volumes:
|
||||
{% if not enable_central_database %}
|
||||
database:
|
||||
{% endif %}
|
||||
{% include 'templates/docker-database-volume.yml.j2' %}
|
||||
redis:
|
||||
application_data:
|
||||
bootstrap:
|
Reference in New Issue
Block a user