2021-05-02 23:49:34 +09:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
php:
|
|
|
|
build: .
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
volumes:
|
|
|
|
# Entrypoint
|
|
|
|
- ../php/entrypoint.sh:/entrypoint.sh
|
|
|
|
- ../db/wait_for_db.sh:/wait_for_db.sh
|
|
|
|
- ../social/install.sh:/var/entrypoint.d/0_social_install.sh
|
2021-09-09 08:40:34 +09:00
|
|
|
- ./coverage.sh:/var/tooling/coverage.sh
|
|
|
|
- ./phpstan.sh:/var/tooling/phpstan.sh
|
2021-05-02 23:49:34 +09:00
|
|
|
# Main files
|
|
|
|
- ../../:/var/www/social
|
2021-09-09 08:40:34 +09:00
|
|
|
- /var/www/social/docker # exclude docker folder
|
2021-05-02 23:49:34 +09:00
|
|
|
- ./xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
|
|
|
env_file:
|
|
|
|
- social.env
|
|
|
|
- db.env
|
|
|
|
command: /entrypoint.sh
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:alpine
|
|
|
|
environment:
|
|
|
|
- PGDATA=/var/lib/postgres/data
|
|
|
|
env_file:
|
|
|
|
- db.env
|
|
|
|
volumes:
|
|
|
|
- database:/var/lib/postgres/data
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
tty: false
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
database:
|