-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (47 loc) · 1.2 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
services:
gateway:
container_name: api-mongo-micro-gateway
build:
context: .
dockerfile: apps/gateway/Dockerfile
target: development
command: pnpm start:prod gateway
env_file:
- ./.env
depends_on:
- auth
- redis
- rabbitmq
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
ports:
- ${APP_PORT}:${APP_PORT}
auth:
container_name: api-mongo-micro-auth
build:
context: .
dockerfile: ./apps/auth/Dockerfile
target: development
command: pnpm start:prod auth
env_file:
- ./.env
depends_on:
- redis
- rabbitmq
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
redis:
container_name: api-mongo-micro-redis
image: redis:alpine
depends_on:
- rabbitmq
ports:
- 6379:6379
rabbitmq:
container_name: api-mongo-micro-rabbitmq
image: rabbitmq:3-management-alpine
ports:
- 5672:5672
- 15672:15672