forked from brocoders/nestjs-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.document.yaml
45 lines (40 loc) · 1008 Bytes
/
docker-compose.document.yaml
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
services:
maildev:
build:
context: .
dockerfile: maildev.Dockerfile
ports:
- ${MAIL_CLIENT_PORT}:1080
- ${MAIL_PORT}:1025
mongo:
image: mongo:7.0.8
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${DATABASE_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${DATABASE_PASSWORD}
volumes:
- boilerplate-mongo-db:/data/db
ports:
- ${DATABASE_PORT}:27017
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_BASICAUTH_USERNAME: ${DATABASE_USERNAME}
ME_CONFIG_BASICAUTH_PASSWORD: ${DATABASE_PASSWORD}
ME_CONFIG_MONGODB_URL: mongodb://${DATABASE_USERNAME}:${DATABASE_PASSWORD}@mongo:${DATABASE_PORT}/
# Uncomment to use redis
# redis:
# image: redis:7-alpine
# ports:
# - 6379:6379
api:
build:
context: .
dockerfile: document.Dockerfile
ports:
- ${APP_PORT}:${APP_PORT}
volumes:
boilerplate-mongo-db: