forked from 4xxi/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (40 loc) · 996 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (40 loc) · 996 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.2'
services:
php:
build:
context: ./config/docker/php
args:
- HOST_UID=${HOST_UID}
depends_on:
- db
working_dir: /var/www/html
volumes:
- .:/var/www/html
expose:
- "9000"
entrypoint: ./config/docker/php/docker-entrypoint.sh
environment:
- COMPOSER_HOME=/var/www/html/var/composer
- PHP_IDE_CONFIG
- APP_ENV
nginx:
image: 4xxi/nginx:flex
depends_on:
- php
ports:
- "${EXTERNAL_HTTP_PORT}:80"
volumes:
- .:/var/www/html
- ./var/log:/var/log/nginx
db:
image: postgres:10.6
ports:
- "${EXTERNAL_POSTGRES_PORT}:5432"
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
volumes:
db: