-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (38 loc) · 1.09 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
# docker compose up --detach --build --force-recreate --remove-orphans
name: node
services:
app:
image: app
container_name: app
depends_on:
- mongo
- mongo-admin
build:
context: .
dockerfile: dockerfile
ports:
- "4000:3000"
environment:
- MONGODB_URL=mongodb://admin:password@mongo:27017/node?authSource=admin
mongo:
image: mongo
container_name: mongo
ports:
- "27017:27017"
volumes:
- ~/volumes/mongo:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
mongo-admin:
image: mongo-express
container_name: mongo-admin
depends_on:
- mongo
ports:
- "27018:8081"
environment:
ME_CONFIG_MONGODB_URL: mongodb://admin:password@mongo:27017
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
ME_CONFIG_MONGODB_ADMINPASSWORD: password
ME_CONFIG_BASICAUTH: false