-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (45 loc) · 1.05 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
48
version: '3.7'
services:
mysql:
image: mysql:8.0
container_name: mysql-container
environment:
MYSQL_ROOT_PASSWORD: root_password
MYSQL_DATABASE: your_database_name
MYSQL_USER: your_username
MYSQL_PASSWORD: your_password
ports:
- "3306:3306"
networks:
- saas-network
kafka:
image: confluentinc/cp-kafka:latest
container_name: kafka-container
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
ports:
- "9092:9092"
networks:
- saas-network
nestjs-app:
build:
context: ./nota-fiscal-api
container_name: nestjs-container
depends_on:
- mysql
- kafka
ports:
- "3000:3000"
environment:
DATABASE_HOST: mysql
DATABASE_PORT: 3306
DATABASE_USER: your_username
DATABASE_PASSWORD: your_password
DATABASE_NAME: your_database_name
KAFKA_BROKER: kafka:9092
networks:
- app-network
networks:
saas-network:
driver: bridge