34 lines
815 B
YAML
34 lines
815 B
YAML
version: '3'
|
|
services:
|
|
|
|
ghost-server:
|
|
image: ghost:5
|
|
cap_add:
|
|
- CAP_SYS_NICE
|
|
security_opt:
|
|
- seccomp:unconfined
|
|
restart: always
|
|
ports:
|
|
- 2368:2368
|
|
depends_on:
|
|
- ghost-db
|
|
environment:
|
|
|
|
url: http://ip:2368
|
|
database__client: mysql
|
|
database__connection__host: ghost-db
|
|
database__connection__user: root
|
|
database__connection__password: CHANGE_ME!!!
|
|
database__connection__database: ghost
|
|
volumes:
|
|
- /docker/ghost/content:/var/lib/ghost/content
|
|
ghost-db:
|
|
image: mysql:8
|
|
security_opt:
|
|
- seccomp:unconfined
|
|
restart: always
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: CHANGE_ME!!!
|
|
volumes:
|
|
- /srv/appdata/ghost/mysql:/var/lib/mysql |