Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server.port=8085
- spring.jpa.show-sql=true
- spring.jackson.serialization.write-dates-as-timestamps=false
- spring.jpa.hibernate.ddl-auto=update
- spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
- spring.datasource.url=jdbc:mysql://localhost:3306 /webDatabase?autoReconnect=true&useSSL=false
- spring.datasource.username=root
- spring.datasource.password=my-secret-pw
- FROM openjdk:8-jdk-alpine
- ADD target/web-spring-boot.jar web-spring-boot.jar
- EXPOSE 8085
- ENTRYPOINT ["java","-jar", "web-spring-boot.jar"]
- version: '3'
- services:
- web:
- build: ./web
- ports:
- - "8085:8085"
- depends_on:
- - "database"
- solver:
- build: ./solver
- ports:
- - "8095:8095"
- depends_on:
- - "database"
- database:
- image: "mysql:latest"
- ports:
- - "3306:3306"
- environment:
- - MYSQL_ROOT_PASSWORD=my-secret-pw
- - MYSQL_DATABASE=webDatabase
- healthcheck:
- test: "/usr/bin/mysql --user=root --password=my-secret-pw --execute "SHOW DATABASES;""
- interval: 10s
- timeout: 20s
- retries: 10
- volumes:
- logvolume01: {}
Add Comment
Please, Sign In to add comment