Created
March 20, 2025 16:00
-
-
Save delorenj/b74622a08513b196d10f5bf34a3d53cd to your computer and use it in GitHub Desktop.
RepRally Local MySQL Docker Compose[object Object]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
mysql: | |
image: mysql:8.0 | |
container_name: reprally-mysql | |
restart: unless-stopped | |
environment: | |
MYSQL_ROOT_PASSWORD: reprally | |
MYSQL_DATABASE: reprally_dev | |
MYSQL_USER: reprally | |
MYSQL_PASSWORD: reprally | |
MYSQL_ROOT_HOST: '%' # Allow root connections from any host | |
ports: | |
- "3306:3306" | |
volumes: | |
- mysql_data:/var/lib/mysql | |
command: > | |
--character-set-server=utf8mb4 | |
--collation-server=utf8mb4_unicode_ci | |
--default-authentication-plugin=mysql_native_password | |
--server-id=1 | |
--log-bin=mysql-bin | |
--bind-address=0.0.0.0 | |
--report-host=wet-ham | |
networks: | |
- rrlocal | |
healthcheck: | |
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-preprally"] | |
interval: 5s | |
timeout: 5s | |
retries: 10 | |
start_period: 30s | |
networks: | |
rrlocal: | |
volumes: | |
mysql_data: | |
name: reprally-mysql-data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment