web-site/docker-compose.yml

64 lines
1.2 KiB
YAML

version: "3.3"
services:
ghost:
image: rose-ash-ghost:latest
environment:
url: https://rose-ash.com/
NODE_ENV: production
volumes:
- ghost-content:/var/lib/ghost/content
- ./settings:/var/lib/ghost/content/settings
- ./themes/:/var/lib/ghost/content/themes
networks:
- appnet
- externalnet
secrets:
- email
- 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:
image: rose-ash-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