Last active
February 18, 2026 14:29
-
-
Save loleg/ca85471b559295e364f271034a18ed0b to your computer and use it in GitHub Desktop.
Docker Compose for Ghost 5 on Alpine Linux with MySQL 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| ghost: | |
| image: ghost:5-alpine | |
| container_name: ghost | |
| restart: always | |
| depends_on: | |
| - mysql | |
| ports: | |
| - 8368:2368 | |
| environment: | |
| - database__client=mysql | |
| - database__connection__host=mysql | |
| - database__connection__user=dbghost | |
| - database__connection__password=dbghost | |
| - database__connection__database=dckrg33k | |
| - url=https://my.blog.is.my.castle.cc | |
| volumes: | |
| - ghost:/var/lib/ghost/content | |
| mysql: | |
| image: mysql:8 | |
| container_name: mysql | |
| volumes: | |
| - mysql:/var/lib/mysql | |
| expose: | |
| - "3306" | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=d1c2k4-r5g6s7h8-t | |
| - MYSQL_DATABASE=dbghost | |
| - MYSQL_USER=dbghost | |
| - MYSQL_PASSWORD=dckrg33k | |
| restart: always | |
| volumes: | |
| ghost: | |
| mysql: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The future thanks you for not using
:latest🙇