forked from martin12333/speaker.app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
85 lines (76 loc) · 2.28 KB
/
docker-compose.dev.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
###
# speaker.app development Docker Compose.
###
version: "3.8"
networks:
# Establish base network to resolve container hostnames (esp. w/ Nginx)
# @see https://github.com/docker/compose/issues/3412#issuecomment-472323332
zen-rtc-service-network:
services:
# IMPORTANT: Only use this service in development
#
# The corresponding production counterpart for serving production SSL
# certificate is located in docker.compose.prod.yml
dev_ssl_proxy:
build: ./dev_ssl_proxy
restart: unless-stopped
depends_on:
- backend
networks:
- zen-rtc-service-network
volumes:
- ./dev_ssl_proxy:/app
logging:
driver: none # Disable spammy logs
ports:
- 8080:80
- 7443:443
mongo:
logging:
driver: none # Disable spammy logs
# Web-based, administrative interface deployed to manage MongoDB databases
# interactively
mongo-express:
image: mongo-express
restart: unless-stopped
depends_on:
- mongo
environment:
ME_CONFIG_MONGODB_SERVER: mongo
ME_CONFIG_BASICAUTH_USERNAME: ${MONGO_APP_USERNAME}
ME_CONFIG_BASICAUTH_PASSWORD: ${MONGO_APP_PASSWORD}
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGO_INITDB_ROOT_USERNAME}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
# ME_CONFIG_SITE_BASEURL: /mongo-express
networks:
- zen-rtc-service-network
ports:
- 8081:8081
expose:
- 8081
backend:
volumes:
- ./:/app
environment:
NODE_ENV: development
# PROTO_SKIP_FARMHASH: 1 # Required to be 1 for older CPUs or else Socket.io won't connect
command: ["npm", "run", "start:dev"]
frontend:
volumes:
- ./:/app
environment:
NODE_ENV: development
# Note: These are intentionally only supplied to the development; the production version uses them via the Dockerfile when building
REACT_APP_GIT_HASH: ${GIT_HASH}
command: ["npm", "run", "start:no-ssl", "SpeakerAppPortal"]
# NOTE (jh): I didn't mount a volume here intentionally and it may need some
# work to get it to work w/ a volume
avatar_server:
environment:
NODE_ENV: development
# tts_server:
# volumes:
# - ./tts_server:/app
# environment:
# NODE_ENV: development
# command: ["nodemon", "src/index.js"]