stack.yml 691 B

1234567891011121314151617181920212223
  1. # by default, the Ghost image will use SQLite (and thus requires no separate database container)
  2. # we have used MySQL here merely for demonstration purposes (especially environment-variable-based configuration)
  3. version: '3.1'
  4. services:
  5. ghost:
  6. image: ghost:1-alpine
  7. ports:
  8. - 8080:2368
  9. environment:
  10. # see https://docs.ghost.org/docs/config#section-running-ghost-with-config-env-variables
  11. database__client: mysql
  12. database__connection__host: db
  13. database__connection__user: root
  14. database__connection__password: example
  15. database__connection__database: ghost
  16. db:
  17. image: mysql:5.7
  18. environment:
  19. MYSQL_ROOT_PASSWORD: example