2022-11-16 11:17:37 +01:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
2024-01-02 21:13:34 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
2024-01-02 21:13:34 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/services/redis.yml.j2' %}
|
2024-01-02 21:13:34 +01:00
|
|
|
|
2022-11-16 11:17:37 +01:00
|
|
|
application:
|
|
|
|
image: zknt/pixelfed
|
2024-01-12 20:57:58 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2022-11-16 11:17:37 +01:00
|
|
|
logging:
|
|
|
|
driver: journald
|
|
|
|
env_file:
|
|
|
|
- ./env
|
|
|
|
volumes:
|
2024-01-03 11:38:09 +01:00
|
|
|
- "data:/var/www/storage"
|
2023-12-10 16:24:43 +01:00
|
|
|
- "bootstrap:/var/www/bootstrap"
|
2022-11-16 11:17:37 +01:00
|
|
|
- "./env:/var/www/.env"
|
|
|
|
ports:
|
|
|
|
- "{{http_port}}:80"
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2022-11-16 11:17:37 +01:00
|
|
|
worker:
|
|
|
|
image: zknt/pixelfed
|
2024-01-12 20:57:58 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2022-11-16 11:17:37 +01:00
|
|
|
logging:
|
|
|
|
driver: journald
|
|
|
|
env_file:
|
|
|
|
- ./env
|
|
|
|
volumes:
|
2024-01-03 11:38:09 +01:00
|
|
|
- "data:/var/www/storage"
|
2023-12-10 16:24:43 +01:00
|
|
|
- "bootstrap:/var/www/bootstrap"
|
2022-11-16 11:17:37 +01:00
|
|
|
- "./env:/var/www/.env"
|
|
|
|
entrypoint: /worker-entrypoint.sh
|
|
|
|
healthcheck:
|
|
|
|
test: php artisan horizon:status | grep running
|
|
|
|
interval: 60s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 1
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
2024-01-02 21:13:34 +01:00
|
|
|
application:
|
2024-01-05 00:06:19 +01:00
|
|
|
condition: service_started
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2023-12-26 16:40:19 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
2023-12-26 16:40:19 +01:00
|
|
|
redis:
|
2024-01-03 11:38:09 +01:00
|
|
|
data:
|
|
|
|
bootstrap:
|
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|