2018-05-20 13:02:29 +00:00
|
|
|
---
|
2024-01-06 14:19:36 +00:00
|
|
|
version: "3"
|
2018-06-17 08:20:21 +00:00
|
|
|
|
2024-01-06 14:19:36 +00:00
|
|
|
###############################################################
|
|
|
|
# Please see docker/README.md for usage information
|
|
|
|
###############################################################
|
2018-06-17 08:20:21 +00:00
|
|
|
|
2018-05-20 13:02:29 +00:00
|
|
|
services:
|
2024-01-06 14:19:36 +00:00
|
|
|
web:
|
|
|
|
image: "${DOCKER_IMAGE}:${DOCKER_TAG}"
|
|
|
|
# build:
|
|
|
|
# target: apache-runtime
|
2019-06-03 02:53:13 +00:00
|
|
|
restart: unless-stopped
|
2018-05-20 13:02:29 +00:00
|
|
|
volumes:
|
2024-01-06 14:19:36 +00:00
|
|
|
- "./.env:/var/www/.env"
|
|
|
|
- "${DOCKER_DATA_ROOT}/pixelfed/cache:/var/www/bootstrap/cache"
|
|
|
|
- "${DOCKER_DATA_ROOT}/pixelfed/storage:/var/www/storage"
|
2020-04-11 15:48:02 +00:00
|
|
|
ports:
|
2024-01-06 14:19:36 +00:00
|
|
|
- "${DOCKER_WEB_PORT_EXTERNAL}:80"
|
2020-04-11 15:48:02 +00:00
|
|
|
depends_on:
|
2020-04-11 15:52:05 +00:00
|
|
|
- db
|
2020-04-11 15:48:02 +00:00
|
|
|
- redis
|
2018-05-31 19:43:14 +00:00
|
|
|
|
2020-04-11 15:48:02 +00:00
|
|
|
worker:
|
2024-01-06 14:19:36 +00:00
|
|
|
image: "${DOCKER_IMAGE}:${DOCKER_TAG}"
|
|
|
|
# build:
|
|
|
|
# target: apache-runtime
|
|
|
|
command: gosu www-data php artisan horizon
|
2019-06-03 02:53:13 +00:00
|
|
|
restart: unless-stopped
|
2019-04-22 02:40:32 +00:00
|
|
|
volumes:
|
2024-01-06 14:19:36 +00:00
|
|
|
- "./.env:/var/www/.env"
|
|
|
|
- "${DOCKER_DATA_ROOT}/pixelfed/cache:/var/www/bootstrap/cache"
|
|
|
|
- "${DOCKER_DATA_ROOT}/pixelfed/storage:/var/www/storage"
|
2020-04-11 15:48:02 +00:00
|
|
|
depends_on:
|
2020-04-11 15:52:05 +00:00
|
|
|
- db
|
2020-04-11 15:48:02 +00:00
|
|
|
- redis
|
|
|
|
|
2018-06-17 08:20:21 +00:00
|
|
|
db:
|
2024-01-06 14:19:36 +00:00
|
|
|
image: mariadb:11.2
|
2019-11-01 18:01:40 +00:00
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
2024-01-06 14:19:36 +00:00
|
|
|
restart: unless-stopped
|
2018-05-20 13:02:29 +00:00
|
|
|
volumes:
|
2024-01-06 14:19:36 +00:00
|
|
|
- "${DOCKER_DATA_ROOT}/db:/var/lib/mysql"
|
|
|
|
ports:
|
|
|
|
- "${DOCKER_DB_PORT_EXTERNAL}:3306"
|
2018-05-31 19:43:14 +00:00
|
|
|
|
2018-05-20 13:02:29 +00:00
|
|
|
redis:
|
2024-01-06 14:19:36 +00:00
|
|
|
image: redis:7
|
2019-06-03 02:53:13 +00:00
|
|
|
restart: unless-stopped
|
2018-05-20 13:02:29 +00:00
|
|
|
volumes:
|
2024-01-06 14:19:36 +00:00
|
|
|
- "${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"]
|