Skip to content

Instantly share code, notes, and snippets.

@wiliscavalcante
Last active April 20, 2022 18:00
Show Gist options
  • Save wiliscavalcante/d309196716533d9d2b9a7c57bf30e396 to your computer and use it in GitHub Desktop.
Save wiliscavalcante/d309196716533d9d2b9a7c57bf30e396 to your computer and use it in GitHub Desktop.
Stack docker-compose Ghost e SMTP
version: '3.9'
services:
ghost:
image: ghost:latest
restart: always
environment:
database__client: mysql
database__connection__host: mysql
database__connection__user: root
database__connection__password: example
database__connection__database: ghost
url: http://localhost:2368
mail__transport: 'SMTP'
mail__from: 'email@seudominio.com.br'
mail__options__service: 'Locaweb'
mail__options__host: 'email-ssl.com.br'
mail__options__port: 465
mail__options__secure: 'true'
mail__options__auth__user: 'email@seudominio.com.br'
mail__options__auth__pass: 'senha'
volumes:
- ghost-data:/var/lib/ghost/content
ports:
- 2368:2368
mysql:
image: mysql:8.0
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: example
volumes:
- mysql-data:/var/lib/mysql
volumes:
ghost-data: {}
mysql-data: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment