Skip to content

Commit

Permalink
Fix the Docker compose to always work
Browse files Browse the repository at this point in the history
  • Loading branch information
StarDylan committed Dec 3, 2024
1 parent 3952630 commit 59a0a0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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

0 comments on commit 59a0a0f

Please sign in to comment.