2024-02-11 12:31:51 +00:00
|
|
|
version: "3.3"
|
|
|
|
services:
|
|
|
|
ghost:
|
|
|
|
image: rose-ash-ghost:latest
|
|
|
|
environment:
|
2024-09-18 14:32:16 +00:00
|
|
|
url: https://rose-ash.com/
|
2024-02-11 12:31:51 +00:00
|
|
|
NODE_ENV: production
|
|
|
|
volumes:
|
|
|
|
- ghost-content:/var/lib/ghost/content
|
2024-11-19 08:51:13 +00:00
|
|
|
- ./settings:/var/lib/ghost/content/settings
|
2024-09-18 14:32:16 +00:00
|
|
|
- ./themes/:/var/lib/ghost/content/themes
|
2024-02-11 12:31:51 +00:00
|
|
|
networks:
|
|
|
|
- appnet
|
|
|
|
- externalnet
|
|
|
|
secrets:
|
|
|
|
- email
|
|
|
|
- db-password
|
2024-11-21 19:54:21 +00:00
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints: [node.labels.node == production ]
|
|
|
|
|
2024-09-18 14:32:16 +00:00
|
|
|
invite-token:
|
|
|
|
image: invite-token
|
|
|
|
environment:
|
|
|
|
MYSQL_USER: ghost
|
|
|
|
MYSQL_PASSWORD: ghostdbpass
|
|
|
|
MYSQL_DATABASE: ghostdb
|
|
|
|
MYSQL_HOST: db
|
|
|
|
PORT: 3002
|
|
|
|
networks:
|
|
|
|
- appnet
|
|
|
|
- externalnet
|
2024-11-21 19:54:21 +00:00
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints: [node.labels.node == production ]
|
2024-02-11 12:31:51 +00:00
|
|
|
|
|
|
|
db:
|
2024-02-14 21:59:24 +00:00
|
|
|
image: rose-ash-mysql:latest
|
2024-02-11 12:31:51 +00:00
|
|
|
environment:
|
2024-02-13 20:21:16 +00:00
|
|
|
MYSQL_ROOT_PASSWORD: mysqlrootpass
|
2024-02-11 12:31:51 +00:00
|
|
|
MYSQL_USER: ghost
|
2024-02-13 20:21:16 +00:00
|
|
|
MYSQL_PASSWORD: ghostdbpass
|
2024-02-11 12:31:51 +00:00
|
|
|
MYSQL_DATABASE: ghostdb
|
|
|
|
volumes:
|
2024-02-13 20:21:16 +00:00
|
|
|
- ghost-mysql-db:/var/lib/mysql
|
2024-02-11 12:31:51 +00:00
|
|
|
networks:
|
|
|
|
- appnet
|
|
|
|
secrets:
|
|
|
|
- db-password
|
|
|
|
- db-root-password
|
2024-11-21 19:54:21 +00:00
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints: [node.labels.node == production ]
|
2024-02-11 12:31:51 +00:00
|
|
|
volumes:
|
|
|
|
ghost-content:
|
|
|
|
ghost-config:
|
2024-02-13 20:21:16 +00:00
|
|
|
ghost-mysql-db:
|
2024-02-11 12:31:51 +00:00
|
|
|
networks:
|
|
|
|
appnet:
|
|
|
|
driver: overlay
|
|
|
|
externalnet:
|
|
|
|
driver: overlay
|
|
|
|
external: true
|
|
|
|
secrets:
|
|
|
|
email:
|
|
|
|
file: ./.email
|
|
|
|
db-password:
|
|
|
|
file: ./.db-password
|
|
|
|
db-root-password:
|
|
|
|
file: ./.db-root-password
|
2024-02-13 20:21:16 +00:00
|
|
|
|