-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
40 lines (39 loc) · 1007 Bytes
/
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
version: "3.5"
services:
php:
build: tests/docker
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