2022-03-12 18:37:47 +00:00
|
|
|
version: '3.8'
|
2016-03-02 12:31:53 +00:00
|
|
|
services:
|
2016-09-13 18:31:32 +00:00
|
|
|
|
2016-03-02 12:31:53 +00:00
|
|
|
php:
|
|
|
|
build:
|
|
|
|
context: docker/php
|
2022-03-12 18:37:47 +00:00
|
|
|
# Use target 'rootless' if you run rootless Docker
|
|
|
|
target: default
|
2016-03-02 12:31:53 +00:00
|
|
|
volumes:
|
|
|
|
- .:/var/www/html
|
2022-03-12 18:37:47 +00:00
|
|
|
# Volumes for data-related folders
|
|
|
|
- assets:/var/www/html/web/assets
|
|
|
|
- data:/var/www/html/data
|
|
|
|
- cache:/var/www/.cache
|
|
|
|
# Uncomment the following volume if you run rootless Docker
|
|
|
|
# A limitation blocks permissions on root docker, see
|
|
|
|
# https://github.com/moby/moby/issues/40881
|
|
|
|
# - type: tmpfs
|
|
|
|
# target: /var/www/html/var/cache
|
|
|
|
# Override third-party libraries for dev
|
|
|
|
# - ../graby-site-config:/var/www/html/vendor/j0k3r/graby-site-config
|
|
|
|
# - ../php-readability:/var/www/html/vendor/j0k3r/php-readability
|
|
|
|
# - ../graby:/var/www/html/vendor/j0k3r/graby
|
|
|
|
# - ../HTMLawed:/var/www/html/vendor/fossar/htmlawed
|
|
|
|
# - ../PHPePub:/var/www/html/vendor/wallabag/phpepub
|
|
|
|
# - ../guzzle-site-authenticator:/var/www/html/vendor/bdunogier/guzzle-site-authenticator
|
2016-03-02 12:31:53 +00:00
|
|
|
env_file:
|
2022-03-12 18:37:47 +00:00
|
|
|
# Copy docker/php/env.example to docker/php/env and customize
|
2016-03-02 12:31:53 +00:00
|
|
|
- ./docker/php/env
|
2022-03-12 18:37:47 +00:00
|
|
|
# Uncomment the database engine you want, it will use sqlite if both are commented
|
2016-03-02 12:31:53 +00:00
|
|
|
# - ./docker/mariadb/env
|
2022-03-12 18:37:47 +00:00
|
|
|
# - ./docker/postgres/env
|
|
|
|
# Uncomment to enable Xdebug
|
|
|
|
# - ./docker/php/xdebug
|
2024-02-24 00:18:08 +00:00
|
|
|
- .env
|
|
|
|
- .env.local
|
2022-03-12 18:37:47 +00:00
|
|
|
ports:
|
|
|
|
- 8000:8000
|
|
|
|
# Uncomment to permit Xdebug remote session
|
|
|
|
# - 9000:9000
|
|
|
|
depends_on:
|
|
|
|
# - mariadb
|
|
|
|
# - postgres
|
|
|
|
- redis
|
2016-09-13 18:31:32 +00:00
|
|
|
|
2019-06-19 12:54:38 +00:00
|
|
|
# postgres:
|
2022-03-12 18:37:47 +00:00
|
|
|
# image: postgres:11-alpine
|
|
|
|
# volumes:
|
|
|
|
# - db-data:/var/lib/postgresql/data
|
|
|
|
# env_file:
|
|
|
|
# - ./docker/postgres/env
|
|
|
|
# healthcheck:
|
|
|
|
# test: ["CMD-SHELL", "pg_isready -q || exit 1"]
|
|
|
|
# interval: 10s
|
|
|
|
# timeout: 3s
|
|
|
|
# retries: 3
|
2016-09-13 18:31:32 +00:00
|
|
|
|
2019-06-19 12:54:38 +00:00
|
|
|
# mariadb:
|
2016-03-02 12:31:53 +00:00
|
|
|
# image: mariadb:10
|
|
|
|
# ports:
|
|
|
|
# - "3306:3306"
|
|
|
|
# volumes:
|
2022-03-12 18:37:47 +00:00
|
|
|
# - db-data:/var/lib/mysql
|
2016-03-02 12:31:53 +00:00
|
|
|
# env_file:
|
|
|
|
# - ./docker/mariadb/env
|
2016-09-13 18:31:32 +00:00
|
|
|
|
2019-06-19 12:54:38 +00:00
|
|
|
# rabbitmq:
|
|
|
|
# image: rabbitmq:3-management-alpine
|
|
|
|
# ports:
|
|
|
|
# - "15672:15672"
|
2016-09-13 18:31:32 +00:00
|
|
|
|
2016-09-14 07:10:13 +00:00
|
|
|
redis:
|
2022-03-12 18:37:47 +00:00
|
|
|
image: redis:6-alpine
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 3s
|
|
|
|
retries: 3
|
|
|
|
|
2024-02-24 00:18:08 +00:00
|
|
|
blackfire:
|
|
|
|
image: blackfire/blackfire:2
|
|
|
|
ports: [ "8307" ]
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
- .env.local
|
|
|
|
|
2022-03-12 18:37:47 +00:00
|
|
|
volumes:
|
|
|
|
db-data:
|
|
|
|
driver: local
|
|
|
|
assets:
|
|
|
|
driver: local
|
|
|
|
data:
|
|
|
|
driver: local
|
|
|
|
cache:
|
|
|
|
driver: local
|