Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit b3600e8

Browse files
authored
Add MySQL service to Docker Compose configuration
Added MySQL database service configuration to compose.yml.
1 parent c487c46 commit b3600e8

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

compose.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
services:
2+
# Database Service
3+
db-mysql:
4+
image: mysql:latest
5+
container_name: db-mysql
6+
ports:
7+
- "3306:3306"
8+
environment:
9+
- MYSQL_ROOT_PASSWORD=password
10+
- MYSQL_DATABASE=stego
11+
- MYSQL_USER=user
12+
- MYSQL_PASSWORD=password
13+
volumes:
14+
- mysql_data:/var/lib/mysql
15+
networks:
16+
- stego-network
17+
218
# Application Service
319
app:
420
# Use the image built by the Spring Boot Maven plugin
@@ -21,22 +37,6 @@ services:
2137
depends_on:
2238
- db-mysql
2339

24-
# Database Service
25-
db-mysql:
26-
image: mysql:latest
27-
container_name: db-mysql
28-
ports:
29-
- "3306:3306"
30-
environment:
31-
- MYSQL_ROOT_PASSWORD=password
32-
- MYSQL_DATABASE=stego
33-
- MYSQL_USER=user
34-
- MYSQL_PASSWORD=password
35-
volumes:
36-
- mysql_data:/var/lib/mysql
37-
networks:
38-
- stego-network
39-
4040
networks:
4141
stego-network:
4242
driver: bridge
@@ -45,4 +45,4 @@ volumes:
4545
mysql_data:
4646
driver: local
4747
storage_data:
48-
driver: local
48+
driver: local

0 commit comments

Comments
 (0)