Files
kr-phim/docker-compose.yml
T
ngthanhvu ad8d577493 feat: add movie management API and database schema
- Implemented movie CRUD operations with endpoints for creating, retrieving, updating, and deleting movies.
- Added pagination and filtering capabilities for movie retrieval.
- Integrated Redis caching for improved performance on movie data retrieval.
- Created database schema for movies with necessary fields and types.
- Added migration files for initial movie table creation and subsequent updates.
- Configured database connection using Drizzle ORM with MySQL.
- Established Redis connection utility for caching.
2026-07-22 00:31:10 -04:00

48 lines
935 B
YAML

services:
mysql:
image: mysql:8.0
container_name: cinek-mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: cinek
MYSQL_USER: cinek
MYSQL_PASSWORD: cinekpassword
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
redis:
image: redis:7-alpine
container_name: cinek-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
cinek:
build:
context: .
dockerfile: Dockerfile.dev
container_name: cinek
restart: unless-stopped
environment:
HOST: 0.0.0.0
PORT: 3002
DATABASE_URL: mysql://cinek:cinekpassword@mysql:3306/cinek
REDIS_URL: redis://redis:6379
ports:
- "3002:3002"
volumes:
- .:/app
- /app/node_modules
depends_on:
- mysql
- redis
volumes:
mysql_data:
redis_data: