2016-03-02 13:31:53 +01:00
|
|
|
services:
|
2016-09-13 20:31:32 +02:00
|
|
|
|
2016-03-02 13:31:53 +01:00
|
|
|
php:
|
|
|
|
build:
|
|
|
|
context: docker/php
|
2022-03-12 19:37:47 +01:00
|
|
|
# Use target 'rootless' if you run rootless Docker
|
|
|
|
target: default
|
2016-03-02 13:31:53 +01:00
|
|
|
volumes:
|
|
|
|
- .:/var/www/html
|
2022-03-12 19:37:47 +01: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 13:31:53 +01:00
|
|
|
env_file:
|
2022-03-12 19:37:47 +01:00
|
|
|
# Copy docker/php/env.example to docker/php/env and customize
|
2016-03-02 13:31:53 +01:00
|
|
|
- ./docker/php/env
|
2022-03-12 19:37:47 +01:00
|
|
|
# Uncomment the database engine you want, it will use sqlite if both are commented
|
2016-03-02 13:31:53 +01:00
|
|
|
# - ./docker/mariadb/env
|
2022-03-12 19:37:47 +01:00
|
|
|
# - ./docker/postgres/env
|
|
|
|
# Uncomment to enable Xdebug
|
|
|
|
# - ./docker/php/xdebug
|
2024-02-24 01:18:08 +01:00
|
|
|
- .env
|
|
|
|
- .env.local
|
2022-03-12 19:37:47 +01:00
|
|
|
ports:
|
|
|
|
- 8000:8000
|
|
|
|
# Uncomment to permit Xdebug remote session
|
|
|
|
# - 9000:9000
|
|
|
|
depends_on:
|
|
|
|
# - mariadb
|
|
|
|
# - postgres
|
|
|
|
- redis
|
2016-09-13 20:31:32 +02:00
|
|
|
|
2019-06-19 14:54:38 +02:00
|
|
|
# postgres:
|
2022-03-12 19:37:47 +01:00
|
|
|
# image: postgres:11-alpine
|
|
|
|
# volumes:
|
|
|
|
# - db-data:/var/lib/postgresql/data
|
|
|
|
# env_file:
|
|
|
|
# - ./docker/postgres/env
|
|
|
|
# healthcheck:
|
2024-04-16 01:01:53 +02:00
|
|
|
# test: ["CMD-SHELL", "pg_isready -U wallabag -q || exit 1"]
|
2022-03-12 19:37:47 +01:00
|
|
|
# interval: 10s
|
|
|
|
# timeout: 3s
|
|
|
|
# retries: 3
|
2016-09-13 20:31:32 +02:00
|
|
|
|
2019-06-19 14:54:38 +02:00
|
|
|
# mariadb:
|
2016-03-02 13:31:53 +01:00
|
|
|
# image: mariadb:10
|
|
|
|
# ports:
|
|
|
|
# - "3306:3306"
|
|
|
|
# volumes:
|
2022-03-12 19:37:47 +01:00
|
|
|
# - db-data:/var/lib/mysql
|
2016-03-02 13:31:53 +01:00
|
|
|
# env_file:
|
|
|
|
# - ./docker/mariadb/env
|
2016-09-13 20:31:32 +02:00
|
|
|
|
2019-06-19 14:54:38 +02:00
|
|
|
# rabbitmq:
|
|
|
|
# image: rabbitmq:3-management-alpine
|
|
|
|
# ports:
|
|
|
|
# - "15672:15672"
|
2016-09-13 20:31:32 +02:00
|
|
|
|
2016-09-14 09:10:13 +02:00
|
|
|
redis:
|
2022-03-12 19:37:47 +01:00
|
|
|
image: redis:6-alpine
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 3s
|
|
|
|
retries: 3
|
|
|
|
|
2024-02-24 01:18:08 +01:00
|
|
|
blackfire:
|
|
|
|
image: blackfire/blackfire:2
|
|
|
|
ports: [ "8307" ]
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
- .env.local
|
|
|
|
|
2022-03-12 19:37:47 +01:00
|
|
|
volumes:
|
|
|
|
db-data:
|
|
|
|
driver: local
|
|
|
|
assets:
|
|
|
|
driver: local
|
|
|
|
data:
|
|
|
|
driver: local
|
|
|
|
cache:
|
|
|
|
driver: local
|