Files
gitactionTest/docker-compose.yml
2025-09-05 11:09:58 +09:00

55 lines
1.1 KiB
YAML

services:
api:
build:
context: .
target: dev
image: mnco-mobile-api:dev
container_name: mnco-mobile-api-dev
env_file:
- .env
environment:
- DATABASE_URL=mysql://MNCO:MNCO@mysql:3306/MNCO
- REDIS_HOST=redis
- REDIS_PORT=6379
- PORT=4000
volumes:
- .:/app
- /app/node_modules
depends_on:
- mysql
- redis
ports:
- '4000:4000'
mysql:
image: mysql:8.3
container_name: mnco-mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=mnco
- MYSQL_USER=mnco
- MYSQL_PASSWORD=mnco
ports:
- '3306:3306'
volumes:
- mysql_data:/var/lib/mysql
command:
[
'mysqld',
'--default-authentication-plugin=mysql_native_password',
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci',
]
redis:
image: redis:7-alpine
container_name: mnco-redis
ports:
- '6379:6379'
volumes:
- redis_data:/data
volumes:
mysql_data:
redis_data: