1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-19 07:18:06 +02:00

fix: remove invalid expose from frontend service

The frontend service incorrectly exposed MySQL port 3306, which is not required
since it doesn't run any database. This commit removes the unnecessary expose 
directive and ensures that only the db service exposes the appropriate ports.

Signed-off-by: Bokyeom <79684339+k-kbk@users.noreply.github.com>
This commit is contained in:
Bokyeom 2025-03-27 11:56:44 +09:00 committed by GitHub
parent 18f59bdb09
commit 53bee33b36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,6 +32,9 @@ services:
- db-data:/var/lib/mysql
networks:
- spring-mysql
expose:
- 3306
- 33060
frontend:
build:
context: frontend
@ -45,9 +48,6 @@ services:
- react-spring
depends_on:
- backend
expose:
- 3306
- 33060
volumes:
db-data: {}
secrets: