-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker-compose.yml added Kora up README.md updated
- Loading branch information
1 parent
c4056d2
commit 160d406
Showing
3 changed files
with
54 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
services: | ||
postgres: | ||
image: postgres:16.4-alpine | ||
restart: unless-stopped | ||
ports: | ||
- '5432:5432' | ||
environment: | ||
POSTGRES_DATABASE: postgres | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
|
||
|
||
flyway: | ||
image: flyway/flyway:10.2-alpine | ||
restart: no | ||
command: -url=jdbc:postgresql://postgres:5432/postgres -schemas=public -user=postgres -password=postgres -connectRetries=60 migrate | ||
volumes: | ||
- ./src/main/resources/db/migration:/flyway/sql | ||
depends_on: | ||
- postgres | ||
|
||
|
||
# Можно закомментировать секцию application и использовать docker-compose | ||
# как окружения для запуска сервиса через gradle run | ||
application: | ||
image: kora-java-crud-template | ||
build: . | ||
restart: unless-stopped | ||
ports: | ||
- '8080:8080' | ||
- '8085:8085' | ||
environment: | ||
POSTGRES_JDBC_URL: jdbc:postgresql://postgres:5432/postgres | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASS: postgres | ||
depends_on: | ||
- postgres | ||
- flyway |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
groupId=ru.tinkoff.kora | ||
koraVersion=1.1.17 | ||
koraVersion=1.1.18 | ||
|
||
|
||
##### GRADLE ##### | ||
|