-
Notifications
You must be signed in to change notification settings - Fork 0
fix automatic database creation in Docker containers #29
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,20 +1,23 @@ | ||||||
| version: '3.8' | ||||||
|
|
||||||
| # docker-compose.yml (API Gateway) | ||||||
| services: | ||||||
| redis: | ||||||
| image: redis:alpine | ||||||
|
|
||||||
| networks: | ||||||
| - shared-app-network | ||||||
|
|
||||||
| gateway: | ||||||
| build: . | ||||||
| ports: | ||||||
| - "8000:8000" | ||||||
| env_file: | ||||||
| - .env | ||||||
| volumes: | ||||||
| - ./gateway.db:/code/gateway.db | ||||||
| - .:/code | ||||||
|
||||||
| depends_on: | ||||||
| - redis | ||||||
|
|
||||||
| networks: | ||||||
| - shared-app-network | ||||||
|
|
||||||
| prometheus: | ||||||
| image: prom/prometheus:latest | ||||||
| ports: | ||||||
|
|
@@ -23,12 +26,23 @@ services: | |||||
| - ./prometheus.yml:/etc/prometheus/prometheus.yml | ||||||
| depends_on: | ||||||
| - gateway | ||||||
|
|
||||||
| networks: | ||||||
| - shared-app-network | ||||||
|
|
||||||
| grafana: | ||||||
| image: grafana/grafana:latest | ||||||
| ports: | ||||||
| - "3000:3000" | ||||||
| environment: | ||||||
| - GF_SECURITY_ADMIN_PASSWORD=admin | ||||||
| depends_on: | ||||||
| - prometheus | ||||||
| - prometheus | ||||||
| networks: | ||||||
| - shared-app-network | ||||||
|
|
||||||
| # volumes: | ||||||
| # gateway_db: | ||||||
|
|
||||||
| networks: | ||||||
| shared-app-network: | ||||||
| external: true | ||||||
|
||||||
| external: true | |
| driver: bridge |
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.
[nitpick] Importing models solely for registration creates implicit dependencies that may be overlooked during refactoring. Consider using a dedicated model registry function or importing all models in a centralized location.