forked from icemc/backend-bootcamp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.09 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
51
52
version: '3.5'
services:
redis:
image: redis:latest
container_name: redis
hostname: redis
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
ports:
- '6379:6379'
volumes:
- 'redis_data:/bitnami/redis/data'
redis-commander:
image: ghcr.io/joeferner/redis-commander:latest
container_name: redis-commander
hostname: redis-commander
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8085:8081"
mongo:
image: mongo:latest
container_name: mongo
ports:
- "27017:27017"
volumes:
- ./database/db:/data/db
- ./database/dev.archive:/Databases/dev.archive
- ./database/production:/Databases/production
mongo-express:
image: mongo-express
container_name: mexpress
environment:
- ME_CONFIG_MONGODB_URL=mongodb://mongo:27017
links:
- mongo
ports:
- "8086:8081"
volumes:
redis_data:
driver: local
networks:
default:
external:
name: ${NETWORK}