compose.yaml 914 B

1234567891011121314151617181920212223242526272829303132
  1. services:
  2. ghost:
  3. image: ghost:5-alpine
  4. restart: always
  5. ports:
  6. - 8080:2368
  7. environment:
  8. # see https://ghost.org/docs/config/#configuration-options
  9. database__client: mysql
  10. database__connection__host: db
  11. database__connection__user: root
  12. database__connection__password: example
  13. database__connection__database: ghost
  14. # this url value is just an example, and is likely wrong for your environment!
  15. url: http://localhost:8080
  16. # 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)
  17. #NODE_ENV: development
  18. volumes:
  19. - ghost:/var/lib/ghost/content
  20. db:
  21. image: mysql:8.0
  22. restart: always
  23. environment:
  24. MYSQL_ROOT_PASSWORD: example
  25. volumes:
  26. - db:/var/lib/mysql
  27. volumes:
  28. ghost:
  29. db: