computer-playbook/roles/docker-pixelfed/templates/docker-compose.yml.j2

49 lines
1.1 KiB
Django/Jinja

version: '2'
services:
{% include 'templates/docker-{{ database_type }}-service.yml.j2' %}
{% include 'templates/docker-redis-service.yml.j2' %}
application:
image: zknt/pixelfed
restart: always
logging:
driver: journald
env_file:
- ./env
volumes:
- "application_data:/var/www/storage"
- "bootstrap:/var/www/bootstrap"
- "./env:/var/www/.env"
ports:
- "{{http_port}}:80"
{% include 'templates/docker-depends-on-central-database.yml.j2' %}
redis:
worker:
image: zknt/pixelfed
restart: always
logging:
driver: journald
env_file:
- ./env
volumes:
- "application_data:/var/www/storage"
- "bootstrap:/var/www/bootstrap"
- "./env:/var/www/.env"
entrypoint: /worker-entrypoint.sh
healthcheck:
test: php artisan horizon:status | grep running
interval: 60s
timeout: 5s
retries: 1
{% include 'templates/docker-depends-on-central-database.yml.j2' %}
redis:
application:
volumes:
{% include 'templates/docker-database-volume.yml.j2' %}
redis:
application_data:
bootstrap: