|
@@ -4,12 +4,16 @@ version: "3"
|
|
services:
|
|
services:
|
|
web:
|
|
web:
|
|
image: "${DOCKER_IMAGE}:${DOCKER_TAG}"
|
|
image: "${DOCKER_IMAGE}:${DOCKER_TAG}"
|
|
|
|
+ build:
|
|
|
|
+ context: ../..
|
|
|
|
+ dockerfile: contrib/docker/Dockerfile
|
|
|
|
+ target: apache-runtime
|
|
restart: unless-stopped
|
|
restart: unless-stopped
|
|
env_file:
|
|
env_file:
|
|
- "./.env"
|
|
- "./.env"
|
|
volumes:
|
|
volumes:
|
|
- "./.env:/var/www/.env"
|
|
- "./.env:/var/www/.env"
|
|
- - "${DOCKER_DATA_ROOT}/pixelfed/bootstrap:/var/www/bootstrap"
|
|
|
|
|
|
+ - "${DOCKER_DATA_ROOT}/pixelfed/cache:/var/www/bootstrap/cache"
|
|
- "${DOCKER_DATA_ROOT}/pixelfed/storage:/var/www/storage"
|
|
- "${DOCKER_DATA_ROOT}/pixelfed/storage:/var/www/storage"
|
|
ports:
|
|
ports:
|
|
- "${DOCKER_WEB_PORT_EXTERNAL}:80"
|
|
- "${DOCKER_WEB_PORT_EXTERNAL}:80"
|
|
@@ -19,13 +23,17 @@ services:
|
|
|
|
|
|
worker:
|
|
worker:
|
|
image: "${DOCKER_IMAGE}:${DOCKER_TAG}"
|
|
image: "${DOCKER_IMAGE}:${DOCKER_TAG}"
|
|
|
|
+ build:
|
|
|
|
+ context: ../..
|
|
|
|
+ dockerfile: contrib/docker/Dockerfile
|
|
|
|
+ target: apache-runtime
|
|
command: gosu www-data php artisan horizon
|
|
command: gosu www-data php artisan horizon
|
|
restart: unless-stopped
|
|
restart: unless-stopped
|
|
env_file:
|
|
env_file:
|
|
- "./.env"
|
|
- "./.env"
|
|
volumes:
|
|
volumes:
|
|
- "./.env:/var/www/.env"
|
|
- "./.env:/var/www/.env"
|
|
- - "${DOCKER_DATA_ROOT}/pixelfed/bootstrap:/var/www/bootstrap"
|
|
|
|
|
|
+ - "${DOCKER_DATA_ROOT}/pixelfed/cache:/var/www/bootstrap/cache"
|
|
- "${DOCKER_DATA_ROOT}/pixelfed/storage:/var/www/storage"
|
|
- "${DOCKER_DATA_ROOT}/pixelfed/storage:/var/www/storage"
|
|
depends_on:
|
|
depends_on:
|
|
- db
|
|
- db
|