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