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
.db-password
.db-root-password
.env

View File

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

View File

@ -1,3 +1,5 @@
docker stack rm rose-ash
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
. ./.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

View File

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