stack.yml 731 B

12345678910111213141516171819202122232425
  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. restart: always
  8. ports:
  9. - 8080:2368
  10. environment:
  11. # see https://docs.ghost.org/docs/config#section-running-ghost-with-config-env-variables
  12. database__client: mysql
  13. database__connection__host: db
  14. database__connection__user: root
  15. database__connection__password: example
  16. database__connection__database: ghost
  17. db:
  18. image: mysql:5.7
  19. restart: always
  20. environment:
  21. MYSQL_ROOT_PASSWORD: example