forked from Denrox/nestjs-microservices-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
76 lines (76 loc) · 1.38 KB
/
docker-compose.test.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3'
services:
task:
build: ./task
restart: always
hostname: task
env_file:
- .env.test
networks:
- backend
links:
- db
ports:
- ${TASK_SERVICE_PORT}:${TASK_SERVICE_PORT}
token:
build: ./token
restart: always
hostname: token
env_file:
- .env.test
networks:
- backend
links:
- db
ports:
- ${TOKEN_SERVICE_PORT}:${TOKEN_SERVICE_PORT}
mailer:
build: ./mailer
restart: always
hostname: mailer
env_file:
- .env.test
networks:
- backend
ports:
- ${MAILER_SERVICE_PORT}:${MAILER_SERVICE_PORT}
permission:
build: ./permission
restart: always
hostname: permission
env_file:
- .env.test
networks:
- backend
ports:
- ${PERMISSION_SERVICE_PORT}:${PERMISSION_SERVICE_PORT}
user:
build: ./user
restart: always
hostname: user
env_file:
- .env.test
networks:
- backend
links:
- mailer
- db
ports:
- ${USER_SERVICE_PORT}:${USER_SERVICE_PORT}
db:
image: 'mongo:3.7'
restart: always
hostname: db
environment:
MONGO_INITDB_DATABASE: ${MONGO_DATABASE}
volumes:
- "./db/init/:/docker-entrypoint-initdb.d/"
networks:
- backend
env_file:
- .env.test
ports:
- 27017:27017
networks:
backend:
driver: bridge