Initial Project Commit
This commit is contained in:
commit
a6dea9c888
2148 changed files with 173870 additions and 0 deletions
29
src/main/docker/app.yml
Normal file
29
src/main/docker/app.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
# This configuration is intended for development purpose, it's **your** responsibility to harden it for production
|
||||
name: resilient
|
||||
services:
|
||||
app:
|
||||
image: resilient
|
||||
environment:
|
||||
- _JAVA_OPTIONS=-Xmx512m -Xms256m
|
||||
- SPRING_PROFILES_ACTIVE=prod,api-docs
|
||||
- MANAGEMENT_PROMETHEUS_METRICS_EXPORT_ENABLED=true
|
||||
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/resilient?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&createDatabaseIfNotExist=true
|
||||
- SPRING_LIQUIBASE_URL=jdbc:mysql://mysql:3306/resilient?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&createDatabaseIfNotExist=true
|
||||
ports:
|
||||
- 127.0.0.1:8081:8081
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- curl
|
||||
- -f
|
||||
- http://localhost:8081/management/health
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 40
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
mysql:
|
||||
extends:
|
||||
file: ./mysql.yml
|
||||
service: mysql
|
Loading…
Add table
Add a link
Reference in a new issue