You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# docker-compose.yml
|
|
|
|
# Docker Hub: https://hub.docker.com/_/ghost
|
|
|
|
# The WebUI can be found at http://<HOST_IP>:<WEBUI_PORT>
|
|
|
|
# Ghost is very particular about it's variables, hence the odd format
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
<NETWORK_NAME>:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
ghost:
|
|
|
|
container_name: ghost
|
|
|
|
depends_on:
|
|
|
|
- ghost-db
|
|
|
|
environment:
|
|
|
|
database__client: mysql
|
|
|
|
database__connection__host: ghost-db
|
|
|
|
database__connection__user: root
|
|
|
|
database__connection__database: ghost
|
|
|
|
database__connection__password: <PASSWORD>
|
|
|
|
url: <URL>
|
|
|
|
image: ghost:<VERSION_TAG>
|
|
|
|
networks:
|
|
|
|
- <NETWORK_NAME>
|
|
|
|
ports:
|
|
|
|
- "2368:2368"
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./ghost:/var/lib/ghost/content
|
|
|
|
ghost-db:
|
|
|
|
container_name: ghost-db
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=<PASSWORD>
|
|
|
|
image: mysql:<VERSION_TAG>
|
|
|
|
labels:
|
|
|
|
- "com.centurylinklabs.watchtower.enable=false"
|
|
|
|
networks:
|
|
|
|
- <NETWORK_NAME>
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/mysql
|