-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.openvidu.yml
41 lines (40 loc) · 1.14 KB
/
docker-compose.openvidu.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
version: '3'
services:
mongo:
image: mongo
command: mongod --port ${MONGODB_PORT}
restart: always
network_mode: host
server:
depends_on:
- mongo
build:
context: ./ChattR
dockerfile: ./server/Dockerfile
image: chattr-server
restart: always
network_mode: host
environment:
NODE_ENV: production
PORT: ${SERVER_PORT}
SESSION_SECRET: ${SESSION_SECRET}
MONGODB_URL: mongodb://localhost:${MONGODB_PORT}/${MONGODB_COLLECTION_NAME}
MONGODB_UPLOAD_BUCKET_NAME: ${MONGODB_UPLOAD_BUCKET_NAME}
MONGODB_UPLOAD_MAX_FILE_SIZE: ${UPLOAD_MAX_FILE_SIZE}
OPENVIDU_URL: http://localhost:5443
OPENVIDU_SECRET: ${OPENVIDU_SECRET}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
client:
depends_on:
- server
build:
context: ./ChattR
dockerfile: ./client/Dockerfile
image: chattr-client
restart: always
network_mode: host
environment:
PORT: 5442
SERVER_URL: http://localhost:${SERVER_PORT}
MAX_BODY_SIZE: ${UPLOAD_MAX_FILE_SIZE}