-
Notifications
You must be signed in to change notification settings - Fork 3
Added Dockerfiles #16
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: main
Are you sure you want to change the base?
Conversation
| @@ -0,0 +1,62 @@ | |||
| version: "3.9" | |||
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.
I think docker-compose now doesn't need this line, but it's ok
|
|
||
| services: | ||
| app: | ||
| image: postgres:13 |
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.
postgres 13? that's way too old bro, and also we need to use the alpine version for both postgres and redis.
I think we should use postgres17-alpine
| image: postgres:13 | ||
| container_name: multi_tenant_db | ||
| environment: | ||
| POSTGRES_USER: user |
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.
I think also here we could make use of env variables?
| DATABASE_HOST: app | ||
| DATABASE_PORT: 5432 | ||
| DATABASE_USER: user | ||
| DATABASE_PASSWORD: postgres8090 |
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.
The same here for env variables
gazzaar
left a comment
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.
Please fix Postgres version and use alpine
Hot-reload supported through volume mounting
All services run using
docker compose upcommandAPI is available at