Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the Docker Compose to autoEvolve and use Healthcheck #749

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conf/application.docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ csv.path="./Upload/CSV"

#Register eBean classes
ebean.default=["femr.data.models.*"]
play.evolutions.db.default.autoApply=true

#Register Guice modules
play.modules.enabled += "femr.util.dependencyinjection.modules.BusinessLayerModule"
Expand Down
8 changes: 7 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,20 @@ services:
- "--log-bin-trust-function-creators=1"
volumes:
- db-data:/var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10

femr:
build: .
links:
- db:mysql
depends_on:
- db
db:
condition: service_healthy
tty: true
restart: on-failure:10
ports:
- '9000:9000'

Expand Down
Loading