-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
55 lines (54 loc) · 1.12 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
version: '3.7'
services:
iwb-mongodb:
container_name: iwb-mongodb
image: 'bitnami/mongodb:latest'
restart: unless-stopped
environment:
- MONGODB_ROOT_PASSWORD=iwb
networks:
- iwb-network
ports:
- 27017:27017
volumes:
- 'mongodb_data:/bitnami/mongodb'
iwb-redis:
container_name: iwb-redis
image: 'bitnami/redis:latest'
restart: unless-stopped
environment:
- ALLOW_EMPTY_PASSWORD=yes
networks:
- iwb-network
ports:
- 6379:6379
volumes:
- 'redis_data:/bitnami/redis/data'
iwb:
container_name: iwb-dev
build: .
image: iwb/dev:latest
restart: unless-stopped
volumes:
- ./:/app
- /app/node_modules
depends_on:
- iwb-mongodb
- iwb-redis
environment:
- MONGODB=mongodb://root:iwb@iwb-mongodb:27017/iwb?authMechanism=DEFAULT&authSource=admin
- REDIS=iwb-redis
networks:
- iwb-network
ports:
- 3000:3000
- 3100:3100
- 9229:9229
networks:
iwb-network:
driver: bridge
volumes:
mongodb_data:
driver: local
redis_data:
driver: local