69 lines
2.5 KiB
YAML
69 lines
2.5 KiB
YAML
services:
|
|
ghost-cosmolocal:
|
|
image: ghost:6-alpine
|
|
container_name: ghost-cosmolocal
|
|
restart: always
|
|
depends_on:
|
|
ghost-cosmolocal-db:
|
|
condition: service_healthy
|
|
environment:
|
|
url: https://blog.cosmolocal.world
|
|
database__client: mysql
|
|
database__connection__host: ghost-cosmolocal-db
|
|
database__connection__user: ghost
|
|
database__connection__password: ad6cf8fba0ee11f950557acdc4957bc9
|
|
database__connection__database: ghost
|
|
NODE_ENV: production
|
|
mail__transport: SMTP
|
|
mail__from: "Cosmolocal World <noreply@cosmolocal.world>"
|
|
mail__options__host: mail.rmail.online
|
|
mail__options__port: "587"
|
|
mail__options__secure: "false"
|
|
mail__options__tls__rejectUnauthorized: "false"
|
|
mail__options__auth__user: noreply@cosmolocal.world
|
|
mail__options__auth__pass: rMailRelay2026!svc
|
|
volumes:
|
|
- ghost_cosmolocal_content:/var/lib/ghost/content
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.ghost-cosmolocal.rule=Host(`blog.cosmolocal.world`)"
|
|
- "traefik.http.routers.ghost-cosmolocal.entrypoints=web"
|
|
- "traefik.http.services.ghost-cosmolocal.loadbalancer.server.port=2368"
|
|
- "traefik.http.routers.ghost-cosmolocal-secure.rule=Host(`blog.cosmolocal.world`)"
|
|
- "traefik.http.routers.ghost-cosmolocal-secure.entrypoints=websecure"
|
|
- "traefik.http.routers.ghost-cosmolocal-secure.tls=true"
|
|
- "traefik.http.routers.ghost-cosmolocal-secure.service=ghost-cosmolocal"
|
|
- "traefik.http.routers.ghost-cosmolocal-secure.middlewares=ghost-cosmolocal-proto"
|
|
- "traefik.http.middlewares.ghost-cosmolocal-proto.headers.customrequestheaders.X-Forwarded-Proto=https"
|
|
networks:
|
|
- traefik-public
|
|
- cosmolocal-internal
|
|
|
|
ghost-cosmolocal-db:
|
|
image: mysql:8.0
|
|
container_name: ghost-cosmolocal-db
|
|
restart: always
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: ad6cf8fba0ee11f950557acdc4957bc9_root
|
|
MYSQL_DATABASE: ghost
|
|
MYSQL_USER: ghost
|
|
MYSQL_PASSWORD: ad6cf8fba0ee11f950557acdc4957bc9
|
|
volumes:
|
|
- ghost_cosmolocal_db:/var/lib/mysql
|
|
healthcheck:
|
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- cosmolocal-internal
|
|
|
|
n8n-cosmolocal:
|
|
environment:
|
|
- GHOST_CONTENT_API_KEY=a58773eeda1a580f937a47cc88
|
|
- GHOST_TEAM_EMAILS=jeff@jeffemmett.com
|
|
|
|
volumes:
|
|
ghost_cosmolocal_content:
|
|
ghost_cosmolocal_db:
|