1

docker profiles, docker compose, mysql entrypoint, security

Co-authored-by: Christoph <tobi@urpost.de>
This commit is contained in:
Christoph
2020-03-26 16:06:40 +01:00
parent f15d1f850d
commit 33e3d9d3f5
8 changed files with 38 additions and 45 deletions

View File

@ -10,12 +10,14 @@ services:
restart: always
volumes:
- './mysql/db/storage:/var/lib/mysql'
- './mysql/db/entrypoint:/docker-entrypoint-initdb.d/'
ports:
- '3306:3306'
gruppen2app:
gruppenapp:
build: .
container_name: 'gruppen2app'
container_name: 'gruppenapp'
depends_on:
- dbmysql
command: ["/app/wait-for-it.sh", "dbmysql:3306", "--", "java", "-Dspring.profiles.active=docker", "-jar", "/app/gruppen2.jar"]
ports:
- '8081:8080'