stack.yml 849 B

123456789101112131415161718192021222324252627
  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:3-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. # this url value is just an example, and is likely wrong for your environment!
  18. url: http://localhost:8080
  19. db:
  20. image: mysql:5.7
  21. restart: always
  22. environment:
  23. MYSQL_ROOT_PASSWORD: example