-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
51 lines (45 loc) · 952 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
version: "3.5"
services:
process_media:
build:
context: ./node
dockerfile: process_media.Dockerfile
command: [ "pm2-dev", "./bin/process_media.js" ]
env_file:
- ./node/.env
links:
- db
volumes:
- ./node:/opt/app:consistent
- file_process:/data/playlister-upload:consistent
api:
build: ./node
ports:
- 3001:3001
command: [ "pm2-dev", "./bin/www" ]
env_file:
- ./node/.env
links:
- db
volumes:
- ./node:/opt/app:consistent
- file_process:/data/playlister-upload:consistent
web:
build: ./react
ports:
- 3000:3000
command: [ "node", "scripts/start.js" ]
volumes:
- ./react:/opt/app:consistent
links:
- api
db:
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=playlister
ports:
- 3306:3306
volumes:
file_process:
driver: local