mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +01:00
49 lines
1.3 KiB
Django/Jinja
49 lines
1.3 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"
|
|
- "bootstrap:/var/www/bootstrap"
|
|
- "./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"
|
|
- "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/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:
|
|
bootstrap:
|
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %} |