forked from tanupoo/penguin-2020-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local.yml
52 lines (47 loc) · 993 Bytes
/
docker-compose-local.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
#
# https://hub.docker.com/_/mongo/
# Use root/example as user/password credentials
#
# penguin
# http://127.0.0.1:8981/
#
# mongo-express
# http://127.0.0.1:8081/
#
# mongo:
# ports:
# - 27017
#
version: '3.7'
services:
mongo:
container_name: penguin-mongodb
image: mongo:4.2.3
restart: always
networks:
- local
ports:
- 127.0.0.1:27017:27017
volumes:
- ./db:/data/db
- ./configdb:/data/configdb
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
mongo-express:
container_name: penguin-mongo-express
image: mongo-express
depends_on:
- mongo
restart: always
networks:
- local
ports:
- 127.0.0.1:8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_SERVER: penguin-mongodb
command: "/sbin/tini -- /docker-entrypoint.sh"
networks:
local: