-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
49 lines (47 loc) · 1.23 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
43
44
45
46
47
48
49
version: '3.7'
services:
php:
build:
context: ./
dockerfile: dev.Dockerfile
args:
- HOST_UID=${HOST_UID}
depends_on:
- db
working_dir: /var/www/html
volumes:
- .:/var/www/html
expose:
- "9000"
entrypoint: ./config/docker/dev/docker-entrypoint.sh
environment:
- COMPOSER_HOME=/var/www/html/var/composer
- PHP_IDE_CONFIG
- APP_ENV
- SYMFONY_PHPUNIT_VERSION
nginx:
image: 4xxi/nginx:flex
depends_on:
- php
ports:
- "${EXTERNAL_HTTP_PORT-80}:80"
volumes:
- .:/var/www/html
- ./var/log:/var/log/nginx
db:
image: postgres:12.2
ports:
- "${EXTERNAL_DB_PORT-5432}:5432"
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${DB_NAME-dev}
- POSTGRES_USER=${DB_USER-dev}
- POSTGRES_PASSWORD=${DB_PASSWORD-dev}
mailhog:
image: mailhog/mailhog
ports:
- "${EXTERNAL_SMTP_PORT-8025}:1025"
- "${EXTERNAL_SMTP_WEB_PORT-8025}:8025"
volumes:
db: