2023-12-06 22:11:52 +03:00
|
|
|
version: '3.8'
|
|
|
|
|
2024-02-01 12:06:44 +03:00
|
|
|
name: ghost
|
|
|
|
|
2023-12-06 22:11:52 +03:00
|
|
|
services:
|
|
|
|
mysql:
|
|
|
|
image: mysql:8.0.35
|
|
|
|
container_name: ghost-mysql
|
2024-01-05 16:42:30 +03:00
|
|
|
# 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
|
2023-12-06 22:11:52 +03:00
|
|
|
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
|
2024-05-07 13:02:36 +03:00
|
|
|
redis:
|
|
|
|
image: redis:7.0
|
|
|
|
container_name: ghost-redis
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
|
|
|
restart: always
|