--- version: "3" ############################################################### # Please see docker/README.md for usage information ############################################################### services: web: image: "${DOCKER_IMAGE}:${DOCKER_TAG}" # build: # target: apache-runtime restart: unless-stopped volumes: - "./.env:/var/www/.env" - "${DOCKER_DATA_ROOT}/pixelfed/cache:/var/www/bootstrap/cache" - "${DOCKER_DATA_ROOT}/pixelfed/storage:/var/www/storage" ports: - "${DOCKER_WEB_HTTP_PORT_EXTERNAL}:80" - "${DOCKER_WEB_HTTPS_PORT_EXTERNAL}:443" depends_on: - db - redis worker: image: "${DOCKER_IMAGE}:${DOCKER_TAG}" # build: # target: apache-runtime command: gosu www-data php artisan horizon restart: unless-stopped volumes: - "./.env:/var/www/.env" - "${DOCKER_DATA_ROOT}/pixelfed/cache:/var/www/bootstrap/cache" - "${DOCKER_DATA_ROOT}/pixelfed/storage:/var/www/storage" depends_on: - db - redis db: image: mariadb:11.2 command: --default-authentication-plugin=mysql_native_password restart: unless-stopped volumes: - "${DOCKER_DATA_ROOT}/db:/var/lib/mysql" ports: - "${DOCKER_DB_PORT_EXTERNAL}:3306" redis: image: redis:7 restart: unless-stopped volumes: - "${DOCKER_CONFIG_ROOT}/redis:/etc/redis" - "${DOCKER_DATA_ROOT}/redis:/data" ports: - "${DOCKER_REDIS_PORT_EXTERNAL}:6399" healthcheck: interval: 10s timeout: 5s retries: 2 test: ["CMD", "redis-cli", "-p", "6399", "ping"]