File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM openjdk:8-alpine
2+ MAINTAINER "Ramazan Sakin"
3+ ADD target/spring-boot-security-jwt-0.0.1-SNAPSHOT.jar spring-boot-security-jwt-0.0.1-SNAPSHOT.jar
4+ EXPOSE 8080
5+ ENTRYPOINT ["java" , "-jar" , "spring-boot-security-jwt-0.0.1-SNAPSHOT.jar" ]
Original file line number Diff line number Diff line change 1+ version : " 3.8"
2+ services :
3+ spring-boot-jwt-auth :
4+ build : .
5+ image : spring-boot-jwt-auth-img
6+ ports :
7+ - " 8080:8080"
8+ environment :
9+ - spring.profiles.active=docker
10+ depends_on :
11+ - mysqldb
12+ restart : on-failure
13+
14+ mysqldb :
15+ image : mysql:5.7
16+ ports :
17+ - " 3306:3306"
18+ environment :
19+ - MYSQL_USER=root
20+ - MYSQL_ROOT_PASSWORD=123456
21+ - MYSQL_DATABASE=testdb
22+ restart : unless-stopped
23+ volumes :
24+ - db:/var/lib/mysql
25+
26+ volumes :
27+ db:
You can’t perform that action at this time.
0 commit comments