2022-08-03 19:29:10 +00:00
|
|
|
version: '3.9'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
ghost:
|
2023-04-04 18:16:51 +00:00
|
|
|
image: ghost:5.41.0
|
2022-08-03 19:29:10 +00:00
|
|
|
container_name: ghost
|
|
|
|
depends_on:
|
|
|
|
- ghostdb
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- ${APP_PORT}:2368
|
|
|
|
environment:
|
|
|
|
# see https://ghost.org/docs/config/#configuration-options
|
|
|
|
database__client: mysql
|
|
|
|
database__connection__host: ghostdb
|
|
|
|
database__connection__user: tipi
|
|
|
|
database__connection__password: ${GHOST_DATABASE_PASSWORD}
|
|
|
|
database__connection__database: ghosttipi
|
|
|
|
url: http://localhost:${APP_PORT}
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/content:/var/lib/ghost/content
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
2022-09-07 19:18:41 +00:00
|
|
|
labels:
|
|
|
|
traefik.enable: ${APP_EXPOSED}
|
|
|
|
traefik.http.routers.ghost.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.ghost.entrypoints: websecure
|
|
|
|
traefik.http.routers.ghost.service: ghost
|
|
|
|
traefik.http.routers.ghost.tls.certresolver: myresolver
|
|
|
|
traefik.http.services.ghost.loadbalancer.server.port: 2368
|
2022-08-03 19:29:10 +00:00
|
|
|
|
|
|
|
ghostdb:
|
|
|
|
container_name: ghostdb
|
|
|
|
image: mariadb:latest
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: ${GHOST_DATABASE_PASSWORD}
|
|
|
|
MYSQL_USER: tipi
|
|
|
|
MYSQL_PASSWORD: ${GHOST_DATABASE_PASSWORD}
|
|
|
|
MYSQL_DATABASE: ghosttipi
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data/db:/var/lib/mysql
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|