2023-02-15 21:45:31 +00:00
|
|
|
version: '3.3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
blog:
|
|
|
|
image: ghost:5
|
|
|
|
container_name: ghost
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 8080:2368
|
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ghost/content:/var/lib/ghost/content
|
2023-02-15 21:45:31 +00:00
|
|
|
environment:
|
|
|
|
# see https://ghost.org/docs/config/#configuration-options
|
2024-01-14 20:17:17 +00:00
|
|
|
database__client: ${DB_CLIENT:-mysql}
|
|
|
|
database__connection__host: ${DB_HOST:-database}
|
|
|
|
database__connection__user: ${DB_USER:-ghost}
|
2024-01-14 20:17:43 +00:00
|
|
|
database__connection__password: ${DB_USER_PASS:-DatabasePassword1234}
|
2024-01-14 20:17:17 +00:00
|
|
|
database__connection__database: ${DB_NAME:-ghost}
|
|
|
|
#url: https://blog.example.com # change this for production
|
2023-02-15 21:45:31 +00:00
|
|
|
NODE_ENV: production
|
|
|
|
#mail__transport: SMTP
|
2024-01-14 20:17:17 +00:00
|
|
|
#mail__options__host: ${SMTP_HOST:-smtp.google.com}
|
|
|
|
#mail__options__port: ${SMTP_PORT:-587}
|
|
|
|
#mail__options__auth__user: ${SMTP_USER:-blog@example.com}
|
|
|
|
#mail__options__auth__pass: ${SMTP_PASS:-SMTPPassword}
|
|
|
|
#mail__from: ${SMTP_MAIL_FROM:-Ghost}
|
2023-02-15 21:45:31 +00:00
|
|
|
|
|
|
|
database:
|
|
|
|
image: linuxserver/mariadb
|
|
|
|
container_name: ghost-db
|
|
|
|
environment:
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
2024-01-14 20:17:17 +00:00
|
|
|
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASS:-DatabasePassword1234}
|
2023-02-15 21:45:31 +00:00
|
|
|
- TZ=Europe/Berlin
|
2024-01-14 20:17:17 +00:00
|
|
|
- MYSQL_DATABASE=${DB_NAME:-ghost}
|
|
|
|
- MYSQL_USER=${DB_USER:-ghost}
|
2024-01-14 20:17:56 +00:00
|
|
|
- MYSQL_PASSWORD=${DB_USER_PASS:-DatabasePassword1234}
|
2023-02-15 21:45:31 +00:00
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ghost/mariadb/config:/config
|
2023-02-15 21:45:31 +00:00
|
|
|
restart: unless-stopped
|