forked from Insolita/yii2-fractal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (42 loc) · 1.07 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
30
31
32
33
34
35
36
37
38
39
40
41
42
version: "3.5"
services:
php:
build:
context: tests/docker
args:
- BUILD_PHP_VERSION=${PHP_VERSION}
volumes:
- ./tests/tmp/.composer:/root/.composer:rw
- .:/app
ports:
- '8400:80'
environment:
- TZ=UTC
- TIMEZONE=UTC
- DB_USER=dbuser
- DB_PASSWORD=dbpass
- IN_DOCKER=docker
- PHP_XDEBUG_ENABLED=1
- XDEBUG_CONFIG="remote_host=host.docker.internal"
- PHP_IDE_CONFIG="serverName=Docker"
depends_on:
- pgsql
tty: false
pgsql:
image: postgres:12
ports:
- '15408:5432'
volumes:
- ./tests/tmp/postgres:/var/lib/postgresql/data:rw
environment:
TZ: UTC
PGTZ: UTC
POSTGRES_USER: dbuser
POSTGRES_PASSWORD: dbpass
POSTGRES_DB: testdb
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.12.12.0/24