-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (49 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
50 lines (49 loc) · 1.12 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
44
45
46
47
48
49
50
version: '3.7'
services:
signaling-server:
build:
context: .
dockerfile: Dockerfile
target: base
volumes:
- ./src:/home/node/app/src
- ./nodemon.json:/home/node/app/nodemon.json
expose:
- '4000'
- '9229'
ports:
- '4000-4001:4000'
- '9229-9230:9229'
environment:
REDIS_HOST_PUB: redis
REDIS_HOST_SUBS: redis
REDIS_PORT: 6379
REDIS_PASSWORD: eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
PORT: 4000
HTTP_PORT: 4001
LOG_LEVEL: 0
NODE_ENV: dev
command: npm run dev
depends_on:
- redis
redis:
image: redis:7.0-alpine
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
volumes:
- redisData:/data
redis-commander:
hostname: redis-commander
image: rediscommander/redis-commander:latest
restart: always
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
ports:
- '8081:8081'
volumes:
redisData:
driver: local