-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (42 loc) · 1.3 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (42 loc) · 1.3 KB
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
version: '3.4'
services:
realtime-polling-server:
container_name: RealtimePolling_App_Server
build:
context: ./Server
ports:
- ${REALTIME_POLLING_SERVER_PORT}:${REALTIME_POLLING_SERVER_PORT}
environment:
- PORT=${REALTIME_POLLING_SERVER_PORT}
- REDIS_DOMAIN_NAME=redis-pubsub-server
- REDIS_PORT=${REALTIME_POLLING_REDIS_PUBSUB_PORT}
- MONGODB_URI=mongodb://mongodb-server:${REALTIME_POLLING_MONGODB_PORT}/realtimePollingApp
depends_on:
- redis-pubsub-server
- mongodb-server
realtime-polling-client:
container_name: RealtimePolling_App_Client
build:
context: ./Client
ports:
- ${REALTIME_POLLING_CLIENT_PORT}:${REALTIME_POLLING_CLIENT_PORT}
environment:
- PORT=${REALTIME_POLLING_CLIENT_PORT}
depends_on:
- realtime-polling-server
redis-pubsub-server:
container_name: RealtimePolling_App_Redis_PubSub
image: redis:7-bullseye
restart: always
ports:
- '${REALTIME_POLLING_REDIS_PUBSUB_PORT}:${REALTIME_POLLING_REDIS_PUBSUB_PORT}'
mongodb-server:
container_name: RealtimePolling_App_MongoDB_Server
image: mongo:5.0.10
restart: always
ports:
- ${REALTIME_POLLING_MONGODB_PORT}:${REALTIME_POLLING_MONGODB_PORT}
volumes:
- database:/data/db
volumes:
database: