-
Notifications
You must be signed in to change notification settings - Fork 81
Fix PostgreSQL version issue in Docker #1200
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
base: develop
Are you sure you want to change the base?
Changes from all commits
2dfedbc
9a29bc7
05259e7
57a61c1
5a6429e
ab76c1e
8fe6fd8
51fd2fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,12 +29,12 @@ services: | |
| createbucket: | ||
| image: minio/mc | ||
| depends_on: | ||
| - minio | ||
| minio: | ||
| condition: service_healthy | ||
|
Comment on lines
+32
to
+33
Collaborator
Author
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. Add a wait until |
||
| env_file: | ||
| - .env | ||
| entrypoint: > | ||
| /bin/sh -c " | ||
| sleep 5; | ||
|
Collaborator
Author
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. Is no longer needed with the |
||
| /usr/bin/mc config host add myminio http://minio:9000 minio ${MINIO_ROOT_PASSWORD}; | ||
| /usr/bin/mc mb myminio/${S3_BUCKET_NAME}; | ||
| /usr/bin/mc anonymous set public myminio/${S3_BUCKET_NAME}; | ||
|
|
@@ -43,7 +43,7 @@ services: | |
|
|
||
| postgres: | ||
| restart: always | ||
| image: postgres:latest | ||
| image: postgres:17 | ||
|
Collaborator
Author
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. The cause of the original database error in the ticket. |
||
| environment: | ||
| POSTGRES_USER: openoversight | ||
| POSTGRES_PASSWORD: terriblepassword | ||
|
|
@@ -52,15 +52,22 @@ services: | |
| - postgres:/var/lib/postgresql/data | ||
| ports: | ||
| - "5432:5432" | ||
| healthcheck: | ||
| test: [ "CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}" ] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
|
|
||
| web: | ||
| restart: always | ||
| build: | ||
| context: . | ||
| dockerfile: dockerfiles/web/Dockerfile-dev | ||
| depends_on: | ||
| - postgres | ||
| - minio | ||
| minio: | ||
| condition: service_healthy | ||
| postgres: | ||
| condition: service_healthy | ||
| env_file: | ||
| - .env | ||
| environment: | ||
|
|
||
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.
Add
@skipdecorator for broken tests.