2023-07-19 19:50:46 +00:00
version : '3.1'
services :
2024-07-23 22:19:34 +00:00
# Cloudflare Tunnel Container
tunnel :
image : cloudflare/cloudflared
command : tunnel --no-autoupdate run
restart : unless-stopped
environment :
TUNNEL_TOKEN : ${TOKEN}
depends_on :
- ghost
2023-07-19 19:50:46 +00:00
ghost :
image : ghost:4-alpine
restart : always
ports :
2024-07-23 21:23:13 +00:00
- 2368 : 2368
2023-07-19 19:50:46 +00:00
environment :
# see https://ghost.org/docs/config/#configuration-options
database__client : mysql
database__connection__host : db
database__connection__user : root
2023-07-21 00:37:44 +00:00
database__connection__password : ${SECRET}
2023-07-19 19:50:46 +00:00
database__connection__database : ghost
# this url value is just an example, and is likely wrong for your environment!
url : https://tomaskrejci.com
# 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)
#NODE_ENV: development
2024-07-21 09:51:48 +00:00
volumes :
- /opt/tomaskrejcicom/ghost/content:/var/lib/ghost/content
2023-07-19 19:50:46 +00:00
db :
image : mysql:8.0
restart : always
environment :
2023-07-21 00:37:44 +00:00
MYSQL_ROOT_PASSWORD : ${SECRET}
2024-07-21 09:51:48 +00:00
volumes :
- /opt/tomaskrejcicom/ghost/db:/var/lib/mysql
2024-07-23 21:44:57 +00:00