Implement backend API and database services in Docker setup
- Added a new `api` service for the NestJS backend, including health checks and dependencies on PostgreSQL, Redis, and MinIO. - Introduced PostgreSQL and Redis services with health checks and configurations for data persistence. - Added MinIO for S3-compatible object storage and a one-shot service to initialize required buckets. - Updated the Nginx configuration to proxy requests to the new backend API and MinIO storage. - Enhanced the Dockerfile to support the new API environment variables and configurations. - Updated the `package.json` and `package-lock.json` to include new dependencies for QR code generation and other utilities. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
21
backend/docker/docker-compose.yml
Normal file
21
backend/docker/docker-compose.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
api:
|
||||
container_name: 'indeehub-api'
|
||||
image: 'indeehub-api'
|
||||
environment:
|
||||
DATABASE_HOST: XXXX.cbjb1ugj4p4e.us-east-1.rds.amazonaws.com
|
||||
DATABASE_NAME: XXXX
|
||||
DATABASE_USER: XXXX
|
||||
DATABASE_PASSWORD: XXXX
|
||||
DATABASE_PORT: 5432
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: Dockerfile
|
||||
entrypoint: ['npm', 'run', 'start:prod']
|
||||
ports:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- ./app:/usr/src/app
|
||||
- /usr/src/app/node_modules
|
||||
Reference in New Issue
Block a user