-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1.17 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
version: "3.7"
services:
# redis:
# image: 'redis:5-alpine'
# environment:
# - ALLOW_EMPTY_PASSWORD=yes
# - REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
# ports:
# - 6379:6379
# volumes:
# - 'redis_data:/bitnami/redis/data'
# phpredmin:
# image: 'sasanrose/phpredmin'
# environment:
# - PHPREDMIN_DATABASE_REDIS_0_HOST=redis
# ports:
# - 8090:80
# depends_on:
# - redis
mongo:
image: mongo:4.4.0
hostname: mongodb
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: dev
MONGO_INITDB_ROOT_PASSWORD: dev
#command: "--bind_ip_all --replSet rs0"
command: "--bind_ip_all"
healthcheck:
test: test $$(echo "rs.initiate().ok || rs.status().ok" | mongo -u dev -p dev --quiet) -eq 1
interval: 10s
start_period: 30s
volumes:
- 'mongo_data:/data/db'
mongo-express:
image: mongo-express
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: dev
ME_CONFIG_MONGODB_ADMINPASSWORD: dev
depends_on:
- mongo
volumes:
# redis_data:
# driver: local
mongo_data:
driver: local