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

View File

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

View File

@ -3,16 +3,30 @@ services:
ghost: ghost:
image: rose-ash-ghost:latest image: rose-ash-ghost:latest
environment: environment:
url: https://roseash.info/ url: https://rose-ash.com/
NODE_ENV: production NODE_ENV: production
volumes: volumes:
- ghost-content:/var/lib/ghost/content - ghost-content:/var/lib/ghost/content
- ./themes/:/var/lib/ghost/content/themes
networks: networks:
- appnet - appnet
- externalnet - externalnet
secrets: secrets:
- email - email
- db-password - 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: db:
image: rose-ash-mysql:latest 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
}