web-site/docker-compose.yml

76 lines
1.6 KiB
YAML
Raw Normal View History

2024-02-11 12:31:51 +00:00
version: "3.3"
services:
ghost:
2024-11-26 22:06:34 +00:00
image: registry.rose-ash.com/rose-ash-ghost:${VERSION}
2024-11-26 21:00:48 +00:00
env_file:
- ./.env
2024-02-11 12:31:51 +00:00
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-26 21:00:48 +00:00
#ports:
# - 2368:2368
2024-11-21 19:54:21 +00:00
deploy:
placement:
2024-11-26 21:00:48 +00:00
constraints: [node.labels.node == $NODE ]
2024-11-21 19:54:21 +00:00
2024-09-18 14:32:16 +00:00
invite-token:
2024-11-26 22:06:34 +00:00
image: registry.rose-ash.com/invite-token:${VERSION}
2024-09-18 14:32:16 +00:00
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:
2024-11-26 21:00:48 +00:00
constraints: [node.labels.node == $NODE ]
2024-11-26 21:04:42 +00:00
#ports:
2024-11-26 21:00:48 +00:00
# donot expose in production!!!
#- 3010:3002
2024-02-11 12:31:51 +00:00
db:
2024-11-26 22:06:34 +00:00
image: registry.rose-ash.com/rose-ash-mysql:${VERSION}
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:
2024-11-26 21:00:48 +00:00
constraints: [node.labels.node == $NODE ]
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