web-site/docker-compose.yml

49 lines
895 B
YAML

version: "3.3"
services:
ghost:
image: rose-ash-ghost:latest
environment:
url: https://roseash.info/
NODE_ENV: production
volumes:
- ghost-content:/var/lib/ghost/content
networks:
- appnet
- externalnet
secrets:
- email
- db-password
db:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: mysqlrootpass
MYSQL_USER: ghost
MYSQL_PASSWORD: ghostdbpass
MYSQL_DATABASE: ghostdb
volumes:
- ghost-mysql-db:/var/lib/mysql
networks:
- appnet
secrets:
- db-password
- db-root-password
volumes:
ghost-content:
ghost-config:
ghost-mysql-db:
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