forked from incluirtecnologia/ProvaFrontendBlog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (38 loc) · 1.18 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
version: '3.1'
services:
node:
image: node:10.6.0-alpine
container_name: phpstart-node
environment:
- SERVERNAME=webserver
volumes:
- .:/srv/vhosts/phpApp
working_dir: /srv/vhosts/phpApp
command: /bin/sh -c "npm install grunt-cli && npm install && npm run dev"
ports:
- 3000:3000
- 3001:3001
depends_on:
- webserver
php-fpm:
image: marciodojr/phpstart:2.0.0
container_name: phpstart
environment:
- APP_SECRET=holly_molly!
- APP_COOKIE_NAME=auth_token
working_dir: /srv/vhosts/phpApp
volumes:
- .:/srv/vhosts/phpApp
- ./.docker/php/php-ini-overrides.ini:/usr/local/etc/php/conf.d/99-overrides.ini
command: /bin/sh -c "composer install && php-fpm"
webserver:
image: nginx:1.14.0-alpine
container_name: phpstart-webserver
working_dir: /srv/vhosts/phpApp
volumes:
- .:/srv/vhosts/phpApp
- ./.docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 2999:80
depends_on:
- php-fpm