re init
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
DOMAIN_NAME=knast.cc
|
||||
DEFAULT_NETWORK=traefik
|
||||
MYSQL_ROOT_PASSWORD=RJbhYNaCEB3fu8cbtkteetxTR5LtZjnPsqATGgPZ
|
||||
database__connection__password=DoBBczDcKDwcmnFARHkGvY4SfRiZr5JsDE9i5LB7
|
||||
MYSQL_PASSWORD=yHXNfJ6XLkaoHTmyqMgx8inrLEadEWwBcTtuDyxo
|
||||
@@ -0,0 +1,37 @@
|
||||
version: "3"
|
||||
services:
|
||||
ghost:
|
||||
image: ghost:latest
|
||||
volumes:
|
||||
- /srv/ghost:/var/lib/ghost/content
|
||||
environment:
|
||||
- url=https://read.knast.cc
|
||||
- database__client=mysql
|
||||
- database__connection__host=ghost_db
|
||||
- database__connection__user=root
|
||||
- database__connection__password=$MYSQL_ROOT_PASSWORD
|
||||
- database__connection__database=ghostdb
|
||||
depends_on:
|
||||
- ghost_db
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 2368:2368
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ghost.entrypoints=websecure"
|
||||
- "traefik.http.routers.ghost.rule=Host(`read.$DOMAIN_NAME`)"
|
||||
- "traefik.http.routers.ghost.tls.certresolver=letsencr"
|
||||
ghost_db:
|
||||
image: mysql:8
|
||||
restart: unless-stopped
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
|
||||
volumes:
|
||||
- /srv/ghost_mysql:/var/lib/mysql
|
||||
ports:
|
||||
- 3306:3306
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: $DEFAULT_NETWORK
|
||||
@@ -0,0 +1,3 @@
|
||||
FROM nginx:latest
|
||||
|
||||
COPY default.conf /etc/nginx/conf.d
|
||||
@@ -0,0 +1,15 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name read.knast.cc;
|
||||
}
|
||||
|
||||
server {
|
||||
server_name read.knast.cc;
|
||||
location / {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_pass http://ghost:2368;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user