-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (36 loc) · 943 Bytes
/
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
version: '3.8'
services:
mongo:
build: ./mongodb_replica
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
MONGO_REPLICA_HOST: host.docker.internal
MONGO_REPLICA_PORT: 27018
ports:
- '27018:27018'
redis:
image: 'bitnami/redis:latest'
environment:
- REDIS_PORT_NUMBER=6379
- ALLOW_EMPTY_PASSWORD=yes
ports:
- 6379:6379
redis-commander:
hostname: redis-commander
image: rediscommander/redis-commander:latest
restart: always
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- '8081:8081'
depends_on:
- redis
app:
build:
context: .
dockerfile: Dockerfile
ports:
- '8080:8080'
depends_on:
- mongo