This commit is contained in:
msnie
2024-06-07 12:04:08 +02:00
parent 7cb8008ded
commit 3617f8d443
+17 -15
View File
@@ -6,11 +6,13 @@ services:
- /srv/ghost:/var/lib/ghost/content - /srv/ghost:/var/lib/ghost/content
environment: environment:
url: https://read.knast.cc url: https://read.knast.cc
database__client: mysql database__client: sqlite3
database__connection__host: ghost_db database__connection__filename: /var/lib/ghost/content/data/ghost.db
database__connection__user: root # database__client: mysql
database__connection__password: RJbhYNaCEB3fu8cbtkteetxTR5LtZjnPsqATGgPZ # database__connection__host: ghost_db
database__connection__database: ghost # database__connection__user: root
# database__connection__password: RJbhYNaCEB3fu8cbtkteetxTR5LtZjnPsqATGgPZ
# database__connection__database: ghost
networks: networks:
- traefik - traefik
- default - default
@@ -25,16 +27,16 @@ services:
- "traefik.http.routers.ghost.rule=Host(`read.$DOMAIN_NAME`)" - "traefik.http.routers.ghost.rule=Host(`read.$DOMAIN_NAME`)"
- "traefik.http.routers.ghost.tls.certresolver=letsencr" - "traefik.http.routers.ghost.tls.certresolver=letsencr"
ghost_db: # ghost_db:
image: mysql:8 # image: mysql:8
networks: # networks:
- default # - default
restart: unless-stopped # restart: unless-stopped
command: --default-authentication-plugin=mysql_native_password # command: --default-authentication-plugin=mysql_native_password
environment: # environment:
MYSQL_ROOT_PASSWORD: RJbhYNaCEB3fu8cbtkteetxTR5LtZjnPsqATGgPZ # MYSQL_ROOT_PASSWORD: RJbhYNaCEB3fu8cbtkteetxTR5LtZjnPsqATGgPZ
volumes: # volumes:
- /srv/ghost_mysql:/var/lib/mysql # - /srv/ghost_mysql:/var/lib/mysql
# ports: # ports:
# - 3366:3306 # - 3366:3306