-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (73 loc) · 2.01 KB
/
docker-compose.yml
File metadata and controls
80 lines (73 loc) · 2.01 KB
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
services:
pact-broker:
image: pactfoundation/pact-broker
ports:
- "9292:9292"
environment:
PACT_BROKER_DATABASE_URL: "sqlite://pacts.sqlite"
PACT_BROKER_DATABASE_USERNAME: "pact_user"
PACT_BROKER_DATABASE_PASSWORD: "password"
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672" # Porta padrão do RabbitMQ para conexão de aplicações
- "15672:15672" # Porta para o painel de gerenciamento
environment:
RABBITMQ_DEFAULT_USER: admin # Usuário padrão
RABBITMQ_DEFAULT_PASS: admin # Senha padrão
mysql:
platform: linux/x86_64
image: mysql:8.0.33
restart: always
container_name: mysql
networks:
- services
ports:
- 3306:3306
volumes:
- mysql-volume:/var/lib/mysql
- ./.docker/sql:/docker-entrypoint-initdb.d/
environment:
- MYSQL_USER=parking
- MYSQL_DATABASE=parking
- MYSQL_PASSWORD=parking
- MYSQL_ROOT_PASSWORD=parking
command: --innodb_use_native_aio=0 --socket=/tmp/mysql.sock --bind_address=0.0.0.0
parking-hexagonal-java-dev:
container_name: parking-hexagonal-java-dev
image: pablords/parking-hexagonal-java-dev:latest
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- ./:/app
ports:
- 8080:8080
- 35729:35729
- 5005:5005
# command: sleep infinity
parking-hexagonal-java:
container_name: parking-hexagonal-java
image: pablords/parking-hexagonal-java:latest
depends_on:
- mysql
- rabbitmq
build:
args:
JAR_FILE: target/parking-0.0.1-SNAPSHOT.jar
networks:
- services
volumes:
- ./src/main/resources/application.yml:/app/config/application.yml
environment:
SPRING_PROFILES_ACTIVE: prod
ports:
- 8080:8080
command: java -jar /app.jar --spring.config.location=file:/app/config/application.yml
# command: sleep infinity
volumes:
mysql-volume:
networks:
services:
driver: 'bridge'