Skip to content

Commit

Permalink
Add an initialization container for delayed exposure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phixsura committed Oct 24, 2023
1 parent aa167a2 commit fb1af3f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ services:
- MYSQL_USER=nacos
- MYSQL_PASSWORD=nacos
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
init:
- name: wait-for-mysql
image: busybox
command:
- "/bin/sh"
- "-c"
- "until nc -z nacos-mysql 3306; do sleep 1; done;"
expose:
- 3306
healthcheck:
Expand Down Expand Up @@ -71,6 +64,13 @@ services:
- ${_basedir}/src/test/resources/nacos-logback-stdout.xml:/home/nacos/conf/nacos-logback.xml
depends_on:
- nacos-mysql
init:
- name: wait-for-mysql
image: busybox
command:
- "/bin/sh"
- "-c"
- "until nc -z nacos-mysql 3306; do sleep 1; done;"

app:
type: app
Expand Down

0 comments on commit fb1af3f

Please sign in to comment.