-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 800 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (46 loc) · 800 Bytes
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
version: '3'
services:
web:
image: trello-clone-web:1.0
stdin_open: true
ports:
- '3000:3000'
networks:
- webnet
server:
image: trello-clone-server:1.0
ports:
- '4000:4000'
networks:
- webnet
environment:
PORT: ${PORT}
NODE_ENV: ${NODE_ENV}
MONGO_URI: ${MONGO_URI}
depends_on:
- db
db:
image: mongo
ports:
- '27017:27017'
networks:
- webnet
volumes:
- mongo-data:/data/db
redis:
image: redis
ports:
- 6379:6379
volumes:
- redisdb:/data
environment:
REDIS_HOST: redis
command: ['redis-server', '--bind', 'redis', '--port', '6379']
networks:
- webnet
networks:
webnet:
volumes:
mongo-data:
driver: local
redisdb: