web-site/docker-compose.yml

49 lines
904 B
YAML
Raw Normal View History

2024-02-11 12:31:51 +00:00
version: "3.3"
services:
ghost:
image: rose-ash-ghost:latest
environment:
2024-02-13 20:21:16 +00:00
url: https://roseash.info/
2024-02-11 12:31:51 +00:00
NODE_ENV: production
volumes:
- ghost-content:/var/lib/ghost/content
networks:
- appnet
- externalnet
secrets:
- email
- db-password
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
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