mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-10 06:51:04 +01:00
50 lines
1.2 KiB
Django/Jinja
50 lines
1.2 KiB
Django/Jinja
version: '2'
|
|
|
|
services:
|
|
|
|
{% include 'templates/docker-service-{{ database_type }}.yml.j2' %}
|
|
|
|
{% include 'templates/docker-service-redis.yml.j2' %}
|
|
|
|
application:
|
|
image: zknt/pixelfed
|
|
restart: always
|
|
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: always
|
|
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:
|
|
{% include 'templates/docker-container-networks.yml.j2' %}
|
|
|
|
{% include 'templates/docker-compose-volumes.yml.j2' %}
|
|
redis:
|
|
data:
|
|
bootstrap:
|
|
|
|
{% include 'templates/docker-compose-networks.yml.j2' %} |