running site

This commit is contained in:
giles 2024-02-13 20:21:16 +00:00
parent ed79c441cf
commit ba3521837d
4 changed files with 20 additions and 12 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
.email .email
.db-password .db-password
.db-root-password .db-root-password
.env

View File

@ -23,5 +23,13 @@
"password": "$DBPASSWORD", "password": "$DBPASSWORD",
"database": "ghostdb" "database": "ghostdb"
} }
},
"spam": {
"user_login": {
"freeRetries": 1000
},
"member_login": {
"freeRetries": 1000
}
} }
} }

View File

@ -1,3 +1,5 @@
docker stack rm rose-ash docker stack rm rose-ash
. ./.env
echo $CERTBOT_EMAIL
echo $DOMAIN
for i in 1 2 3 4 5 6 7 8 9 10; do sleep 5 && docker stack deploy -c docker-compose.yml rose-ash && break ; done for i in 1 2 3 4 5 6 7 8 9 10; do sleep 5 && docker stack deploy -c docker-compose.yml rose-ash && break ; done

View File

@ -2,10 +2,8 @@ version: "3.3"
services: services:
ghost: ghost:
image: rose-ash-ghost:latest image: rose-ash-ghost:latest
depends_on:
- db
environment: environment:
url: https://sigyl.com:4000/ url: https://roseash.info/
NODE_ENV: production NODE_ENV: production
volumes: volumes:
- ghost-content:/var/lib/ghost/content - ghost-content:/var/lib/ghost/content
@ -17,25 +15,23 @@ services:
- db-password - db-password
db: db:
image: mariadb:latest image: mysql:latest
environment: environment:
FILE__MYSQL_ROOT_PASSWORD: /run/secrets/db-root-password MYSQL_ROOT_PASSWORD: mysqlrootpass
MYSQL_USER: ghost MYSQL_USER: ghost
FILE__MYSQL_PASSWORD: /run/secrets/db-password MYSQL_PASSWORD: ghostdbpass
MYSQL_DATABASE: ghostdb MYSQL_DATABASE: ghostdb
volumes: volumes:
- ghost-db:/var/lib/mysql - ghost-mysql-db:/var/lib/mysql
networks: networks:
- appnet - appnet
secrets: secrets:
- db-password - db-password
- db-root-password - db-root-password
volumes: volumes:
ghost-content: ghost-content:
ghost-config: ghost-config:
ghost-db: ghost-mysql-db:
networks: networks:
appnet: appnet:
driver: overlay driver: overlay
@ -49,3 +45,4 @@ secrets:
file: ./.db-password file: ./.db-password
db-root-password: db-root-password:
file: ./.db-root-password file: ./.db-root-password