Skip to content

Instantly share code, notes, and snippets.

@varokas
Last active April 20, 2020 00:23
Show Gist options
  • Select an option

  • Save varokas/3cf7d11040f0e0b5457358d246c2c004 to your computer and use it in GitHub Desktop.

Select an option

Save varokas/3cf7d11040f0e0b5457358d246c2c004 to your computer and use it in GitHub Desktop.
Ghost Docker Compose file
www.<your_domain>.com
reverse_proxy ghost:2368
version: '3.1'
services:
caddy:
ports:
- 80:80
- 443:443
image: caddy/caddy
volumes:
- ./caddy/data:/data
- ./caddy/config/Caddyfile:/etc/caddy/Caddyfile
ghost:
image: ghost:3.11
restart: always
ports:
- 2368:2368
volumes:
- /home/ubuntu/ghost:/var/lib/ghost/content
depends_on:
- "db"
environment:
url: http://www.varokas.com
# see https://docs.ghost.org/docs/config#section-running-ghost-with-config-env-variables
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: <some_password>
database__connection__database: ghost
db:
image: mariadb:10.5
restart: always
volumes:
- /home/ubuntu/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: <some_password>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment