-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
67 lines (61 loc) · 1.85 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
version: "3"
services:
# ===== API-DELIVERY-REACT CONTAINER =====
ui-delivery-react:
image: victormagalhaes/ui-delivery-react
container_name: ui-delivery-react
environment:
- MONGO_DSN=mongodb://root:root@db-routes:27017/nest?authSource=admin
- REACT_APP_GOOGLE_API_KEY=
ports:
- 3001:3001
# ===== API-SIMULATOR-GO CONTAINER =====
api-simulator-go:
image: victormagalhaes/api-simulator-go
container_name: api-simulator-go
extra_hosts:
- "host.docker.internal:172.17.0.1"
# ===== API-ROUTES-NESTJS CONTAINERS =====
api-routes-nestjs:
image: victormagalhaes/api-routes-nestjs
container_name: api-routes-nestjs
ports:
- 3000:3000
environment:
- MONGO_DSN=mongodb://root:root@db-routes:27017/nest?authSource=admin
- KAFKA_CLIENT_ID=api-routes-nestjs
- KAFKA_BROKER=host.docker.internal:9094
- KAFKA_CONSUMER_GROUP_ID=api-routes-nestjs
depends_on:
- db-routes
extra_hosts:
- "host.docker.internal:172.17.0.1"
db-routes:
image: mongo:4.4.4
restart: always
container_name: db-routes
ports:
- 27017:27017
volumes:
- ./api-routes-nestjs/.docker/dbdata:/data/db
- ./api-routes-nestjs/.docker/mongo:/docker-entrypoint-initdb.d
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
- MONGO_INITDB_DATABASE=nest
extra_hosts:
- "host.docker.internal:172.17.0.1"
mongo-express:
image: mongo-express
restart: always
container_name: mongo-express
ports:
- 8081:8081
environment:
- ME_CONFIG_MONGODB_SERVER=db-routes
- ME_CONFIG_MONGODB_AUTH_USERNAME=root
- ME_CONFIG_MONGODB_AUTH_PASSWORD=root
- ME_CONFIG_MONGODB_ADMINUSERNAME=root
- ME_CONFIG_MONGODB_ADMINPASSWORD=root
depends_on:
- db-routes