-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 992 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
version: '2'
volumes:
restful-config:
driver: local
restful-cache:
driver: local
restful-local:
driver: local
restful-yarn:
driver: local
restful-npm:
driver: local
restful-mysql-data:
driver: local
services:
mysql:
image: ambientum/mysql:5.7
container_name: restful-mysql
volumes:
- restful-mysql-data:/var/lib/mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=restful_ws
- MYSQL_ROOT_HOST=%
- MYSQL_DATABASE=restful_ws
- MYSQL_USER=restful_ws
- MYSQL_PASSWORD=restful_ws
web:
image: ambientum/node:8
container_name: restful-web
command: npm run dev
ports:
- "3456:3456"
volumes:
- .:/var/www/app
- restful-config:/home/ambientum/.config
- restful-cache:/home/ambientum/.cache
- restful-local:/home/ambientum/.local
- restful-yarn:/home/ambientum/.yarn
- restful-npm:/home/ambientum/.npm
links:
- mysql