-
-
Notifications
You must be signed in to change notification settings - Fork 129
Fix duplicate environment blocks in docker-compose.prod.yml #611
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
Changes from all commits
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,10 +1,5 @@ | ||||||||||
| services: | ||||||||||
| fresco: | ||||||||||
| environment: | ||||||||||
| - DATABASE_URL=postgresql://postgres:postgres@postgres:5432/postgres | ||||||||||
| - DATABASE_URL_UNPOOLED=postgresql://postgres:postgres@postgres:5432/postgres | ||||||||||
| - PUBLIC_URL=https://mywebsite.com | ||||||||||
| - UPLOADTHING_TOKEN='token' | ||||||||||
| image: 'ghcr.io/complexdatacollective/fresco:latest' | ||||||||||
| depends_on: | ||||||||||
| postgres: | ||||||||||
|
|
@@ -19,6 +14,8 @@ services: | |||||||||
| environment: | ||||||||||
| DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/fresco | ||||||||||
| DATABASE_URL_UNPOOLED: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/fresco | ||||||||||
| PUBLIC_URL: https://mywebsite.com | ||||||||||
| UPLOADTHING_TOKEN: token | ||||||||||
|
Comment on lines
+17
to
+18
|
||||||||||
| PUBLIC_URL: https://mywebsite.com | |
| UPLOADTHING_TOKEN: token | |
| PUBLIC_URL: ${PUBLIC_URL} | |
| UPLOADTHING_TOKEN: ${UPLOADTHING_TOKEN} |
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.
DATABASE_URL/DATABASE_URL_UNPOOLEDpoint to thefrescodatabase, but thepostgresservice is configured withPOSTGRES_DB=postgres(so it will initialize apostgresdatabase by default). This mismatch will cause connection failures on a fresh volume unless thefrescoDB is created elsewhere. Align the DB name by either changingPOSTGRES_DBtofrescoor updating the URLs to use the same database name (ideally via a shared variable).