stack.yml 930 B

12345678910111213141516171819202122232425262728293031323334
  1. version: '3.1'
  2. services:
  3. ghost:
  4. image: ghost:5-alpine
  5. restart: always
  6. ports:
  7. - 8080:2368
  8. environment:
  9. # see https://ghost.org/docs/config/#configuration-options
  10. database__client: mysql
  11. database__connection__host: db
  12. database__connection__user: root
  13. database__connection__password: example
  14. database__connection__database: ghost
  15. # this url value is just an example, and is likely wrong for your environment!
  16. url: http://localhost:8080
  17. # contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
  18. #NODE_ENV: development
  19. volumes:
  20. - ghost:/var/lib/ghost/content
  21. db:
  22. image: mysql:8.0
  23. restart: always
  24. environment:
  25. MYSQL_ROOT_PASSWORD: example
  26. volumes:
  27. - db:/var/lib/mysql
  28. volumes:
  29. ghost:
  30. db: