0x0004 - ghost docker-compose example
ghost docker-compose example
This relies on an existing mysql instance that it can access. Before you create it you will want to make sure you have the docker network installed.
docker network create proxy
Consider: http://learn.thinkmelt.com/mysql-docker-compose-yml/ for a working mysql example.
version: '3'
services:
ghost:
image: ghost:latest
container_name: ghost
ports:
- 0.0.0.0:2368:2368
environment:
- NODE_ENV=development
- database_client=mysql
- database_debug=false
- database_connection_host=127.0.0.1
- database_connection_user=root
- database_connection_passwrd=your_root_password
- database_connection_database=ghost
- url=http://yourdomain.com:2368
networks:
- proxy
restart: always
networks:
proxy:
external: true
Save it as docker-compose.yml and then start it with.
sudo docker compose up