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