-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 1.27 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
56
57
58
59
60
61
62
63
64
version: '3'
services:
app:
image: node:18.16.0
container_name: app
command: bash -c "npm run start:dev"
working_dir: /var/www/app
volumes:
- ./:/var/www/app:cached
restart: always
ports:
- 3000:3000
links:
- mongodb
mongodb:
container_name: mongodb
image: mongo:latest
restart: always
ports:
- 27017:27017
volumes:
- mongodb-volume:/data/db
redis:
image: redis:6
container_name: redis
restart: always
ports:
- 6379:6379
volumes:
- redis-volume:/data
mongo-express:
image: mongo-express:latest
container_name: mongo-express
environment:
- ME_CONFIG_MONGODB_URL="mongodb://mongodb:27017/app"
- ME_CONFIG_MONGODB_SERVER=mongodb
- ME_CONFIG_MONGODB_PORT=27017
- ME_CONFIG_BASICAUTH_USERNAME=root
- ME_CONFIG_BASICAUTH_PASSWORD=root
- ME_CONFIG_OPTIONS_EDITORTHEME="ambiance"
depends_on:
- mongodb
ports:
- 8888:8081
profile:
- donotstart
redisinsight:
image: redislabs/redisinsight:latest
container_name: redisinsight
ports:
- 8001:8001
volumes:
- redisinsight-volume:/db
profile:
- donotstart
volumes:
mongodb-volume:
redis-volume:
redisinsight-volume: