version: '2' services: application: image: zknt/pixelfed restart: always logging: driver: journald env_file: - ./env volumes: - "application_data:/var/www/storage" - "bootstrap:/var/www/bootstrap" - "./env:/var/www/.env" ports: - "{{http_port}}:80" depends_on: - database - redis worker: image: zknt/pixelfed restart: always logging: driver: journald env_file: - ./env volumes: - "application_data:/var/www/storage" - "bootstrap:/var/www/bootstrap" - "./env:/var/www/.env" entrypoint: /worker-entrypoint.sh depends_on: - database - redis - application healthcheck: test: php artisan horizon:status | grep running interval: 60s timeout: 5s retries: 1 {% include 'templates/docker-mariadb-service.yml.j2' %} redis: image: redis:alpine restart: always logging: driver: journald volumes: - redis_data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 1s timeout: 3s retries: 30 volumes: database: redis_data: application_data: bootstrap: