-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
92 lines (84 loc) · 2.01 KB
/
docker-compose.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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: "3"
services:
mongodb:
image: mongo:5.0
ports:
- ${DB_PORT}:${DB_PORT}
volumes:
- ~/apps/mongo:/data/db
user-microservice:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./app:/app/app
env_file:
- .env
ports:
- ${PORT}:${PORT}
depends_on:
- mongodb
tty: true
# Si se quiere levantar junto a los otros microservicios, descomentar y tener en cuenta
# que se debe clonar el proyecto de cada microservicio en la carpeta ../
training-microservice:
image: training-microservice
build:
context: ../training-microservice
dockerfile: Dockerfile
volumes:
- ../training-microservice/app:/app/app
env_file:
- ../training-microservice/.env
ports:
- ${TRAINING_SERVICE_PORT}:${TRAINING_SERVICE_PORT}
depends_on:
- user-microservice
- mongodb
tty: true
goals-microservice:
image: goals-microservice
build:
context: ../goals-microservice
dockerfile: Dockerfile
volumes:
- ../goals-microservice/app:/app/app
env_file:
- ../goals-microservice/.env
ports:
- ${GOALS_SERVICE_PORT}:${GOALS_SERVICE_PORT}
depends_on:
- user-microservice
- training-microservice
- mongodb
tty: true
api-gateway:
build:
context: ../api-gateway
dockerfile: Dockerfile
volumes:
- ../api-gateway/app:/app/app
env_file:
- ../api-gateway/.env
ports:
- ${API_GATEWAY_PORT}:${API_GATEWAY_PORT}
depends_on:
- user-microservice
- training-microservice
- goals-microservice
- metrics-microservice
tty: true
metrics-microservice:
image: metrics-microservice
build:
context: ../metrics-microservice
dockerfile: Dockerfile
volumes:
- ../metrics-microservice/app:/app/app
env_file:
- ../metrics-microservice/.env
ports:
- ${METRICS_SERVICE_PORT}:${METRICS_SERVICE_PORT}
depends_on:
- user-microservice
tty: true