-
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 и spring boot application.
- Loading branch information
Vladislav Kuznetsov
committed
Jul 6, 2024
1 parent
365d808
commit cf98e4d
Showing
13 changed files
with
36 additions
and
58 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,37 +1,12 @@ | ||
services: | ||
database: | ||
container_name: $APPLICATION_NAME-postgres | ||
build: | ||
context: ./postgres | ||
dockerfile: ./Dockerfile | ||
container_name: db-postgres | ||
image: postgres:16-alpine | ||
ports: | ||
- ${PG_PORT}:5432 | ||
environment: | ||
POSTGRES_DB: $PG_DBNAME | ||
POSTGRES_USER: $PG_USER | ||
POSTGRES_PASSWORD: $PG_PASSWORD | ||
networks: | ||
- protego-totalum-network | ||
protego-totalum-bot: | ||
container_name: $APPLICATION_NAME-bot | ||
depends_on: | ||
- database | ||
build: | ||
context: ../pt-discord | ||
dockerfile: ./Dockerfile | ||
ports: | ||
- "8080:8080" | ||
command: | ||
- protego-totalum-bot.jar | ||
environment: | ||
PROTEGO_TOTALUM_DB_HOST: database | ||
PROTEGO_TOTALUM_DB_PORT: 5432 | ||
networks: | ||
- protego-totalum-network | ||
env_file: | ||
- ignore.env | ||
|
||
networks: | ||
protego-totalum-network: | ||
name: $APPLICATION_NAME-network | ||
external: false | ||
volumes: | ||
- ./postgres/create_schemas.sql:/docker-entrypoint-initdb.d/create_schemas.sql |
This file was deleted.
Oops, something went wrong.
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,3 +1,2 @@ | ||
\connect protego_totalum | ||
create schema if not exists protego_totalum; | ||
create schema if not exists liquibase; |
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
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
2 changes: 1 addition & 1 deletion
2
pt-discord/src/main/resources/db/changelog/db.changelog-master.yaml
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,4 +1,4 @@ | ||
databaseChangeLog: | ||
- include: | ||
file: 2023.1/db.2023.1-master.yaml | ||
file: init/db.init-master.yaml | ||
relativeToChangelogFile: true |
4 changes: 2 additions & 2 deletions
4
...gelog/2023.1/db.2023.1-create_tables.yaml → ...changelog/init/db.init-create-tables.yaml
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
2 changes: 1 addition & 1 deletion
2
...db/changelog/2023.1/db.2023.1-master.yaml → ...ces/db/changelog/init/db.init-master.yaml
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,4 +1,4 @@ | ||
databaseChangeLog: | ||
- include: | ||
file: db.2023.1-create_tables.yaml | ||
file: db.init-create-tables.yaml | ||
relativeToChangelogFile: true |