This commit is contained in:
parent
b6b13e0a5a
commit
039dfe2b24
|
@ -2,4 +2,5 @@
|
|||
.db-password
|
||||
.db-root-password
|
||||
.env
|
||||
themes
|
||||
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
/var/www/ghost/content/logs/*.log {
|
||||
weekly
|
||||
rotate 12
|
||||
compress
|
||||
copytruncate
|
||||
}
|
Loading…
Reference in New Issue