-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (55 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
56 lines (55 loc) · 1.02 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
version: '3'
services:
nginx:
image: nginx:1.13.3
links:
- client:client
- api:api
depends_on:
- client
- api
ports:
- "8000:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
api:
image: node:8.4.0
volumes:
- ./api/:/app/
working_dir: /app/
command: npm start -- --legacy-watch
expose:
- "80"
depends_on:
- mysql
- rethinkdb
links:
- rethinkdb:rethinkdb
- mysql:mysql
client:
image: node:8.4.0
working_dir: /app/
command: npm start
expose:
- "80"
environment:
PORT: "80"
HOST: "0.0.0.0"
volumes:
- ./client/:/app/
rethinkdb:
image: rethinkdb:2.3.5
ports:
- "28015:28015"
- "8080:8080"
volumes:
- ./data/rethinkdb:/data/
mysql:
image: mysql:8.0.3
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
ports:
- "3306:3306"
volumes:
- ./data/mysql:/var/lib/mysql