47439b3b94
no refs Added a name for the project in `docker-compose.yml` as it was using the `scripts` directory as the name Before: ```sh ❯ docker-compose ls NAME STATUS CONFIG FILES scripts running(1) /path/to/ghost/.github/scripts/docker-compose.yml ``` After: ```sh ❯ docker-compose ls NAME STATUS CONFIG FILES ghost running(1) /path/to/ghost/.github/scripts/docker-compose.yml ```
24 lines
740 B
YAML
24 lines
740 B
YAML
version: '3.8'
|
|
|
|
name: ghost
|
|
|
|
services:
|
|
mysql:
|
|
image: mysql:8.0.35
|
|
container_name: ghost-mysql
|
|
# We'll need to look into how we can further fine tune the memory usage/performance here
|
|
command: --innodb-buffer-pool-size=1G --innodb-log-buffer-size=500M --innodb-change-buffer-max-size=50 --innodb-flush-log-at-trx_commit=0 --innodb-flush-method=O_DIRECT
|
|
ports:
|
|
- "3306:3306"
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: root
|
|
MYSQL_DATABASE: ghost
|
|
restart: always
|
|
volumes:
|
|
# Turns out you can drop .sql or .sql.gz files in here, cool!
|
|
- ./mysql-preload:/docker-entrypoint-initdb.d
|
|
healthcheck:
|
|
test: "mysql -uroot -proot ghost -e 'select 1'"
|
|
interval: 1s
|
|
retries: 120
|