-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yaml
56 lines (52 loc) · 1.32 KB
/
docker-compose.dev.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
services:
node_server:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- .:/app
- /app/node_modules
environment:
- NODE_ENV=development
restart: "always"
ports:
- "3333:3333"
depends_on:
- db_test
- rabbitmq
- minio
db_test:
image: postgres:latest
volumes:
- pgdata_test:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${POSTGRES_USER_TEST}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD_TEST}
- POSTGRES_DB=${POSTGRES_DB_TEST}
ports:
- "3335:5432"
rabbitmq:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672" # Porta do RabbitMQ Management UI
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
volumes:
- rabbitmq_data:/var/lib/rabbitmq/data
minio:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001" # Porta do WebUi do minIO
environment:
- MINIO_ROOT_USER=${MINIO_ACCESS_KEY}
- MINIO_ROOT_PASSWORD=${MINIO_SECRET_KEY}
command: minio server /data --console-address :9001 # Precisa inserir este comando para mapear a porta do WebUi e iniciar o minIO
volumes:
- minio_data:/data
volumes:
pgdata_test:
rabbitmq_data:
minio_data: