This commit is contained in:
giles 2024-09-18 14:32:16 +00:00
parent b6b13e0a5a
commit 039dfe2b24
4 changed files with 23 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,4 +2,5 @@
.db-password
.db-root-password
.env
themes

View File

@ -1,5 +1,6 @@
FROM ghost:alpine
RUN apk update && apk add gettext
COPY config.production.template /var/lib/ghost/
COPY log-rotate /etc/logrotate.d/ghost
COPY run.sh .
CMD ["sh", "./run.sh"]

View File

@ -3,16 +3,30 @@ services:
ghost:
image: rose-ash-ghost:latest
environment:
url: https://roseash.info/
url: https://rose-ash.com/
NODE_ENV: production
volumes:
- ghost-content:/var/lib/ghost/content
- ./themes/:/var/lib/ghost/content/themes
networks:
- appnet
- externalnet
secrets:
- email
- db-password
invite-token:
image: invite-token
environment:
MYSQL_USER: ghost
MYSQL_PASSWORD: ghostdbpass
MYSQL_DATABASE: ghostdb
MYSQL_HOST: db
PORT: 3002
networks:
- appnet
- externalnet
#ports:
# - 3002:3002
db:
image: rose-ash-mysql:latest

6
log-rotate Normal file
View File

@ -0,0 +1,6 @@
/var/www/ghost/content/logs/*.log {
weekly
rotate 12
compress
copytruncate
}