-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
57 lines (57 loc) · 1.07 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
52
53
54
55
56
57
version: '3.8'
services:
#############
## OPEN VIDU ##
openvidu:
image: openvidu/openvidu-dev:2.26.0
environment:
- OPENVIDU_SECRET=${OPENVIDU_SECRET}
- DOMAIN_OR_PUBLIC_IP=${OPENVIDU_IP}
ports:
- ${OPENVIDU_PORT}:4443
networks:
- webrtc
restart: always
container_name: openvidu
##############
## SERVER ##
server:
build:
context: ./server
dockerfile: Dockerfile
networks:
- webapp
- webrtc
env_file:
- .env
ports:
- ${SERVER_PORT}:3000
volumes:
- ./server/src:/app/src
restart: always
command: yarn start:dev
container_name: server
#############
## CLIENT ##
client:
build:
context: ./client
dockerfile: Dockerfile
env_file:
- .env
volumes:
- ./client/src:/app/src
- ./client/public:/app/public
networks:
- webapp
- webrtc
ports:
- ${CLIENT_PORT}:5173
command: yarn dev
restart: always
container_name: client
networks:
webapp:
driver: bridge
webrtc:
driver: bridge