2022-11-16 11:17:37 +01:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
application:
|
|
|
|
image: zknt/pixelfed
|
2023-01-09 15:59:36 +01:00
|
|
|
restart: always
|
2022-11-16 11:17:37 +01:00
|
|
|
logging:
|
|
|
|
driver: journald
|
|
|
|
env_file:
|
|
|
|
- ./env
|
|
|
|
volumes:
|
|
|
|
- "application_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"
|
|
|
|
depends_on:
|
2024-01-02 12:23:25 +01:00
|
|
|
{% if not enable_central_database %}
|
2022-11-16 11:17:37 +01:00
|
|
|
- database
|
2023-12-31 11:14:18 +01:00
|
|
|
{% endif %}
|
2022-11-16 11:17:37 +01:00
|
|
|
- redis
|
|
|
|
worker:
|
|
|
|
image: zknt/pixelfed
|
2023-01-09 15:59:36 +01:00
|
|
|
restart: always
|
2022-11-16 11:17:37 +01:00
|
|
|
logging:
|
|
|
|
driver: journald
|
|
|
|
env_file:
|
|
|
|
- ./env
|
|
|
|
volumes:
|
|
|
|
- "application_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
|
2023-12-31 11:14:18 +01:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- application
|
2024-01-02 12:23:25 +01:00
|
|
|
{% if not enable_central_database %}
|
2023-12-31 11:14:18 +01:00
|
|
|
|
|
|
|
- database
|
2023-12-26 03:13:16 +01:00
|
|
|
|
|
|
|
{% include 'templates/docker-mariadb-service.yml.j2' %}
|
2023-12-31 11:14:18 +01:00
|
|
|
{% endif %}
|
2023-12-26 03:13:16 +01:00
|
|
|
|
2023-12-26 16:40:19 +01:00
|
|
|
{% include 'templates/docker-redis-service.yml.j2' %}
|
|
|
|
|
2022-11-16 11:17:37 +01:00
|
|
|
volumes:
|
2024-01-02 12:23:25 +01:00
|
|
|
{% if not enable_central_database %}
|
2022-11-16 11:17:37 +01:00
|
|
|
database:
|
2023-12-31 11:14:18 +01:00
|
|
|
{% endif %}
|
2023-12-26 16:40:19 +01:00
|
|
|
redis:
|
2023-12-10 16:24:43 +01:00
|
|
|
application_data:
|
|
|
|
bootstrap:
|