19 lines
415 B
YAML
19 lines
415 B
YAML
services:
|
|
mysql:
|
|
image: mysql:8.0
|
|
container_name: mysql_peewee
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
|
|
command: --log_bin_trust_function_creators=1
|
|
ports:
|
|
- "3306:3306"
|
|
volumes:
|
|
- mysql_data:/var/lib/mysql
|
|
healthcheck:
|
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
mysql_data: |