forked from docplanner-workshop/phpers2021
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 775 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 775 Bytes
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
version: '3'
services:
backend:
build: .
ports:
- 8088:80
expose:
- 9003
environment:
WEB_DOCUMENT_ROOT: /app/public
WEB_DOCUMENT_INDEX: index.php
PHP_DISPLAY_ERRORS: 1
XDEBUG_CLIENT_PORT: 9003
XDEBUG_CLIENT_HOST: host.docker.internal
volumes:
- "./:/app:delegated"
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- db
networks:
- internal
db:
image: postgres:latest
ports:
- 5432:5432
volumes:
- docplanner-db-vol:/var/lib/postgresql/data
environment:
POSTGRES_DB: docplanner-phpers2021
POSTGRES_PASSWORD: dp
networks:
- internal
networks:
internal:
external: false
volumes:
docplanner-db-vol: ~