-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
60 lines (56 loc) · 1.77 KB
/
docker-compose.yaml
File metadata and controls
60 lines (56 loc) · 1.77 KB
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
50
51
52
53
54
55
56
57
58
59
60
version: '3'
volumes:
postgres:
driver: local
services:
### PHP-FPM ##############################################
php-fpm:
build:
context: .
dockerfile: docker/php-fpm/Dockerfile
args:
- PHP_VERSION=${PHP_VERSION}
- INSTALL_AMQP= false
- INSTALL_APCU= true
- INSTALL_BLACKFIRE= false
- INSTALL_COMPOSER= true
- INSTALL_GIT= true
- INSTALL_INTL= true
- INSTALL_NODE= true
- INSTALL_YARN= true
- INSTALL_PGSQL= true
- INSTALL_PHPDBG= false
- INSTALL_PHPREDIS= false
- INSTALL_SYMFONY= true
- INSTALL_XDEBUG= true
- INSTALL_XSL= true
- LOCALE=POSIX
- http_proxy
- https_proxy
- no_proxy
volumes:
- '.:/usr/src/app'
- ./docker/php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini
expose:
- "9000"
### NGINX Server #########################################
nginx:
image: nginx:alpine
volumes:
- './public/:/usr/src/app'
- './docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro'
ports:
- "80:80"
depends_on:
- php-fpm
### PostgreSQL ###########################################
postgres:
image: postgres:alpine
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "15432:5432"