-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.11 KB
/
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
version: '3.5'
services:
mongo:
image: mongo:4.2.7-bionic
ports:
- 27020:27017
volumes:
- recipe-central-mongo-volume:/data/db/
- ./mongo/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
MONGO_INITDB_DATABASE: admin
container_name: mongo
ytwatchparty-server:
build:
context: ./backend
dockerfile: Dockerfile
container_name: ytwatchparty-server
ports:
- 3001:3001
expose:
- 3001
volumes:
- './backend:/srv/app/ytparty-server'
# - '/srv/app/ytparty-server/node_modules/'
links:
- mongo
depends_on:
- mongo
command: npm start
ytwatchparty-client:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: ytwatchparty-client
ports:
- 3000:3000
expose:
- 3000
volumes:
- './frontend:/usr/src/app'
- '/usr/src/app/node_modules'
links:
- ytwatchparty-server
command: npm start
volumes:
recipe-central-mongo-volume: