Ghost docker-compose
services:
ghost:
image: ghost:latest
restart: always
ports:
- 2368:2368
environment:
database__connection__host: db
database__connection__user: root
database__connection__password: xample
database__connection__database: ghost
url: https://ghost.rootsec.one
#mail__options__auth__pass: smtpPassword
#mail__options__auth__user: smtpUser
#mail__options__host: smtp.example.com
#mail__options__port: 587
#mail__options__secure: false
#mail__options__service: smtpService
#mail__transport: SMTP
#mail__from: [email protected]
links:
- db
volumes:
- /home/user/dockerghost/content:/var/lib/ghost/content
depends_on:
- db
db:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: xample
MYSQL_DATABASE: ghost
MYSQL_USER: ghost
MYSQL_PASSWORD: testmysql
volumes:
- mysql-data:/var/lib/mysql
volumes:
mysql-data: