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
|
|
|
|
database__client: mysql
|
|
|
|
database__connection__host: database
|
2023-02-19 20:06:32 +00:00
|
|
|
database__connection__user: ghost
|
2023-02-15 21:45:31 +00:00
|
|
|
database__connection__password: MyStrongDatabasePassword
|
|
|
|
database__connection__database: ghost
|
2023-02-19 20:11:11 +00:00
|
|
|
# url: https://blog.example.com # change this for production
|
2023-02-15 21:45:31 +00:00
|
|
|
NODE_ENV: production
|
|
|
|
#mail__transport: SMTP
|
|
|
|
#mail__options__host: smtp.gmail.com
|
|
|
|
#mail__options__port: 587
|
|
|
|
#mail__options__auth__user: blog@example.com
|
|
|
|
#mail__options__auth__pass: MyStrongSmtpLoginPassword
|
|
|
|
#mail__from: Ghost Blog <blog@example.com>
|
2023-02-26 02:59:44 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
#labels:
|
|
|
|
# - traefik.enable=true
|
|
|
|
# - traefik.http.routers.ghost.rule=Host(`blog.example.com`)
|
|
|
|
# - traefik.http.services.ghost.loadbalancer.server.port=2368
|
|
|
|
# - traefik.docker.network=proxy
|
|
|
|
# # Part for local lan services only
|
|
|
|
# #- traefik.http.routers.ghost.middlewares=external-secure@file
|
|
|
|
|
|
|
|
database:
|
|
|
|
image: mysql:8
|
|
|
|
container_name: ghost_db
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ghost/mysql:/var/lib/mysql
|
2023-02-15 21:45:31 +00:00
|
|
|
#ports:
|
|
|
|
# - "13928:3306"
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: AnotherStrongDatabasePasswordForRootUser
|
|
|
|
MYSQL_DATABASE: ghost
|
2023-02-19 20:06:32 +00:00
|
|
|
MYSQL_USER: ghost
|
2023-02-15 21:45:31 +00:00
|
|
|
MYSQL_PASSWORD: MyStrongDatabasePassword
|
2023-02-26 02:59:44 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
|
|
|
|
|
|
|
#networks:
|
|
|
|
# proxy:
|
|
|
|
# external: true
|