-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
29 lines (28 loc) · 1.06 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
services:
php:
build:
context: ./docker/php
args:
wait_version: 2.12.1 # https://github.com/ufoscout/docker-compose-wait/tags
phpunit_version: 11.4.4 # https://github.com/sebastianbergmann/phpunit/tags
phpstan_version: 1.11.11 # https://github.com/phpstan/phpstan/tags
deptrac_version: 2.0.4 # https://github.com/qossmic/deptrac/tags
php_cs_fixer_version: v3.65.0 # https://github.com/friendsofphp/php-cs-fixer/tags
working_dir: /app
volumes:
- ".:/app"
user: "${UID:-1000}:${GID:-1000}"
depends_on:
- postgres
environment:
WAIT_HOSTS: postgres:5432
WAIT_LOGGER_LEVEL: info
postgres:
image: postgres:13
volumes:
- "./docker/pgsql:/docker-entrypoint-initdb.d"
environment:
POSTGRES_DB: repositoring
POSTGRES_USER: bruce
POSTGRES_PASSWORD: mypass
command: ["postgres", "-c", "log_statement=all"]