-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 1.19 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
services:
# MySQL Database container
# Provides the main database for the application
# Exposes port 3306 for database connections
# Uses mysql:8.0 image for a lightweight MySQL instance
# JDBC URL: jdbc:mysql://localhost:3306/demodb
mysql:
image: mysql:8.0
container_name: database-quarkusDemo
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: demodb
MYSQL_USER: user
MYSQL_PASSWORD: password
ports:
- "3308:3306"
# Quarkus Application container
# Builds the Quarkus application from the current directory
# Exposes port 8082 for application access
# Connects to the MySQL database defined above
app:
build: .
container_name: app-quarkusDemo
ports:
- "8082:8080"
environment:
QUARKUS_DATASOURCE_JDBC_URL: jdbc:mysql://mysql:3306/demodb
QUARKUS_DATASOURCE_USERNAME: user
QUARKUS_DATASOURCE_PASSWORD: password
depends_on:
- mysql
# Mail testing and development SMTP server
# Provides a local SMTP server for email testing
mailpit:
image: axllent/mailpit
container_name: mailpit-quarkusDemo
ports:
- 1027:1025 # SMTP Server
- 8027:8025 # Web UI for email inspection