-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (55 loc) · 1.02 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
50
51
52
53
54
55
version: '3'
services:
nginx:
build:
context: ./docker/nginx
volumes:
- .:/app
depends_on:
- php-fpm
ports:
- "8080:80"
php-fpm:
build:
context: ./docker/php
dockerfile: php-fpm.docker
environment:
PHP_IDE_CONFIG: serverName=laravel-daily-mini-reddit
volumes:
- .:/app
depends_on:
- db
php-cli:
build:
context: ./docker/php
dockerfile: php-cli.docker
volumes:
- .:/app
depends_on:
- db
db:
image: mysql:5.7
volumes:
- db:/var/lib/mysql
environment:
MYSQL_DATABASE: laravel_daily_mini_reddit
MYSQL_ALLOW_EMPTY_PASSWORD: 1
ports:
- "3306:3306"
node-watch:
build:
context: ./docker/node
volumes:
- .:/app
command: sh -c "until [ -f .ready ] ; do sleep 1 ; done && npm run watch"
node-cli:
build:
context: ./docker/node
volumes:
- .:/app
mailhog:
image: 'mailhog/mailhog:latest'
ports:
- "8025:8025"
volumes:
db: