-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combined docker files #1623
base: main
Are you sure you want to change the base?
Combined docker files #1623
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# Run the following to migrate... | ||
# liquibase update --changelog-file ./etor/databaseMigrations/root.yml --url jdbc:postgresql://localhost:5433/intermediary --username intermediary --password 'changeIT!' --label-filter '!azure' | ||
|
||
# Run the following to rollback... | ||
# liquibase rollback-count --changelog-file ./etor/databaseMigrations/root.yml --url jdbc:postgresql://localhost:5433/intermediary --username intermediary --password 'changeIT!' --count 2 | ||
|
||
|
||
version: "3.7" | ||
services: | ||
router: | ||
|
@@ -7,3 +14,18 @@ services: | |
ports: | ||
- "8080:8080" # default api endpoint port | ||
- "6006:6006" # Java debug port | ||
|
||
postgresql: | ||
image: postgres:16 | ||
restart: unless-stopped | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's recommended to avoid using 'unless-stopped' for the restart policy of containers in production environments. Consider using 'always' or a specific restart policy that aligns with your deployment strategy. [medium] |
||
environment: | ||
POSTGRES_DB: "intermediary" | ||
POSTGRES_PASSWORD: "changeIT!" # pragma: allowlist secret | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider using environment variables for database credentials to enhance security. This can be done by setting up environment variables in your CI/CD pipeline or local environment, and referencing them in the docker-compose file. [important] |
||
POSTGRES_USER: "intermediary" | ||
ports: | ||
- 5433:5432 | ||
volumes: | ||
- ti_postgres_data:/var/lib/postgresql/data | ||
|
||
volumes: | ||
ti_postgres_data: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the documentation to reflect the removal of 'docker-compose.postgres.yml' and ensure all references are correctly pointing to 'docker-compose.yml'. This helps in maintaining accurate and useful documentation. [important]