32 lines
759 B
YAML
32 lines
759 B
YAML
name: nextchair-infra
|
|
|
|
services:
|
|
nextchair-mysql:
|
|
image: mysql:8.0
|
|
container_name: nextchair-mysql
|
|
restart: unless-stopped
|
|
env_file:
|
|
- ../../.env.infra
|
|
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_0900_ai_ci
|
|
ports:
|
|
- "${MYSQL_HOST_PORT:-127.0.0.1:3306}:3306"
|
|
volumes:
|
|
- nextchair-mysql-data:/var/lib/mysql
|
|
healthcheck:
|
|
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-u", "root", "-p${MYSQL_ROOT_PASSWORD:-change-me-too}"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 20
|
|
start_period: 10s
|
|
networks:
|
|
- nextchair-db
|
|
|
|
volumes:
|
|
nextchair-mysql-data:
|
|
name: nextchair-mysql-data
|
|
|
|
networks:
|
|
nextchair-db:
|
|
name: nextchair-db
|
|
external: true
|