mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-30 00:11:03 +01:00
46 lines
1.2 KiB
Django/Jinja
46 lines
1.2 KiB
Django/Jinja
services:
|
|
|
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
|
|
|
{% include 'templates/docker/services/redis.yml.j2' %}
|
|
|
|
application:
|
|
image: zknt/pixelfed
|
|
restart: {{docker_restart_policy}}
|
|
logging:
|
|
driver: journald
|
|
env_file:
|
|
- ./env
|
|
volumes:
|
|
- "data:/var/www/storage"
|
|
- "./env:/var/www/.env"
|
|
ports:
|
|
- "{{http_port}}:80"
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
worker:
|
|
image: zknt/pixelfed
|
|
restart: {{docker_restart_policy}}
|
|
logging:
|
|
driver: journald
|
|
env_file:
|
|
- ./env
|
|
volumes:
|
|
- "data:/var/www/storage"
|
|
- "./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/container/depends-on-database-redis.yml.j2' %}
|
|
application:
|
|
condition: service_started
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
|
redis:
|
|
data:
|
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %} |