-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 881 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (30 loc) · 881 Bytes
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
version: '2'
services:
server:
build: ./server
ports:
- 7001:7001
volumes:
- ./server:/src/app
container_name: sample_server
command: npm run start_on_docker
depends_on:
- mysql
environment:
- DATABASE_HOST=mysql
dashboard:
build: ./dashboard
ports:
- 8000:80
container_name: sample_dashboard
mysql:
build: ./mysql
ports:
- 3306:3306
container_name: sample_mysql
volumes:
- ~/mysql/data:/var/lib/mysql
- ~/mysql/log:/var/log/mysql
environment:
MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: cg_apiserver