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

50 lines
984 B
YAML

version: '3.9'
services:
api:
image: mnco-mobile-api:dev
build:
context: .
target: dev
env_file:
- .env.docker.example
environment:
- DATABASE_URL=mysql://bkon:bkon@mysql:3306/bkon
- REDIS_HOST=redis
- REDIS_PORT=6379
ports:
- '4000:4000'
volumes:
- .:/app
- /app/node_modules
depends_on:
- mysql
- redis
mysql:
image: mysql:8.3
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=bkon
- MYSQL_USER=bkon
- MYSQL_PASSWORD=bkon
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
ports:
- '6379:6379'
volumes:
- redis_data:/data
volumes:
mysql_data:
redis_data: