2024-10-09 09:36:53 -05:00
|
|
|
services:
|
|
|
|
ghost:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
volumes:
|
|
|
|
- .:/home/ghost
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 2368:2368
|
|
|
|
- 4200:4200
|
2024-10-09 09:39:12 -05:00
|
|
|
environment:
|
2024-10-09 10:26:06 -05:00
|
|
|
- NODE_ENV=dockerdev
|
2024-10-09 10:40:25 -05:00
|
|
|
- DEBUG=${DEBUG}
|
2024-10-09 10:26:06 -05:00
|
|
|
- APP_FLAGS=${APP_FLAGS}
|
2024-10-09 18:16:33 -05:00
|
|
|
tty: true
|
2024-10-09 17:03:10 -05:00
|
|
|
mysql:
|
|
|
|
image: mysql:8.0.35
|
|
|
|
container_name: ghost-full-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:
|
|
|
|
- mysql-data:/var/lib/mysql
|
|
|
|
healthcheck:
|
|
|
|
test: "mysql -uroot -proot ghost -e 'select 1'"
|
|
|
|
interval: 1s
|
|
|
|
retries: 120
|
|
|
|
redis:
|
|
|
|
image: redis:7.0
|
|
|
|
container_name: ghost-full-redis
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mysql-data:
|