-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (53 loc) · 937 Bytes
/
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
56
57
58
59
version: '2'
services:
db:
image: mysql
ports:
- 3306:3306
volumes:
- ../.data/db:/var/lib/mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_ROOT_PASSWORD: ~
MYSQL_DATABASE: ~
MYSQL_USER: ~
MYSQL_PASSWORD: ~
es:
build: elk/elasticsearch
volumes:
- ../.data/es:/usr/share/elasticsearch/data
ports:
- 9300:9200
- 9301:9300
redis:
image: redis
ports:
- 6389:6379
php:
build: php7-fpm
ports:
- 9000:9000
links:
- db:mysqldb
- es
- redis
volumes:
- ../source:/var/www/${SITE}
nginx:
build: nginx
ports:
- 80:80
links:
- php
volumes_from:
- php
node:
build:
context: yarn
args:
PORT: 8080
ports:
- 3000:8080
volumes:
- ../source/assets:/usr/src/app
command: bash -c "yarn && npm start"