Files
band-management/docker-compose.yml

43 lines
986 B
YAML

# Band Management - Development Services
# PHP/Node run natively for best Cursor IDE performance
services:
mysql:
image: mysql:8.0
container_name: bm_mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: band_management
MYSQL_USER: band_management
MYSQL_PASSWORD: secret
volumes:
- mysql_data:/var/lib/mysql
- ./docker/mysql/my.cnf:/etc/mysql/conf.d/my.cnf:ro
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-proot"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:alpine
container_name: bm_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
mailpit:
image: axllent/mailpit
container_name: bm_mailpit
ports:
- "8025:8025" # Web UI
- "1025:1025" # SMTP
volumes:
mysql_data:
redis_data: