-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (53 loc) · 1.29 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
57 lines (53 loc) · 1.29 KB
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
53
54
55
56
57
version: '3.8'
services:
rabbitmq-broker:
hostname: rabbitmq
container_name: rabbitmq-broker
image: rabbitmq:3.9.12-management-alpine
ports:
- ${AMQP_PORT}:5672
- ${AMQP_MANAGEMENT_PORT}:15672
environment:
- "RABBITMQ_DEFAULT_USER=${AMQP_USERNAME}"
- "RABBITMQ_DEFAULT_PASS=${AMQP_PASSWORD}"
- "RABBITMQ_DEFAULT_VHOST='vhost'"
env_file:
- ./.env
healthcheck:
test:
[ "CMD", "echo", "Awaiting rabbitmq..." ]
interval: 10s
timeout: 10s
retries: 8
mongo-db:
image: 'mongo'
container_name: 'mongo'
hostname: mongo
environment:
- MONGO_INITDB_DATABASE=${MONGODB_INIT_DB_NAME}
- MONGO_INITDB_ROOT_USERNAME=${MONGODB_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGODB_PASSWORD}
env_file:
- ./.env
ports:
- ${MONGODB_PORT}:27017
volumes:
# - ${MONGODB_STORAGE_LOCATION}:/data/db
- mongodb_data:/data/db
backend:
container_name: ${APP_NAME}
image: wildegor/nestjs-microservice-boilerplate
restart: always
# build:
# context: .
# dockerfile: Dockerfile
ports:
- ${APP_PORT}:${APP_PORT}
- ${GRPC_PORT}:${GRPC_PORT}
env_file:
- ./.env
depends_on:
- mongo-db
volumes:
mongodb_data:
driver: local