Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kakashysen/dockerized-ghost
Basic configuration to dockerized ghost in development and production environment
https://github.com/kakashysen/dockerized-ghost
docker docker-compose ghost nginx npm
Last synced: 4 days ago
JSON representation
Basic configuration to dockerized ghost in development and production environment
- Host: GitHub
- URL: https://github.com/kakashysen/dockerized-ghost
- Owner: kakashysen
- Created: 2017-04-06T05:21:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-11T03:27:57.000Z (almost 8 years ago)
- Last Synced: 2024-11-16T10:13:47.701Z (2 months ago)
- Topics: docker, docker-compose, ghost, nginx, npm
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Dockerized Ghost
This dockerized version of ghost used a SQLite as Database and is saved in the `content/data` directory.
By the way, there are a jobs configured to make a backup of Database every day at mid night and is storage in the `backups-db` directory
__Note__
If you wan to deploy in Digital Ocean server, you need to add 1G of swap to your server, if you don't know how do that check this [tutorial](https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04)
## Requirements
- `docker` 17.03.1-ce, build c6d412e
- `docker-compose` version 1.11.2
## Install
Clone this repo `git clone [email protected]:kakashysen/dockerized-ghost.git`
Enter in to directory `dockerized-ghost`
`cd dockerized-ghost`
Get the last version of ghost
```bash
wget https://ghost.org/zip/ghost-latest.zip
```Decompress the ghost zip
```bash
unzip ghost-latest.zip && rm ghost-latest.zip
```when unzip the ghost, it ask you to replace the README.md file, so answer yes and continue the process
Build docker
This process may take some time, be patients
```bash
docker-compose build
```Start docker container in development mode run
```bash
docker-compose up
```Ready! :raised_hands:, now you can access to ghost from your browser `http://localhost:2368`
### For production
Replace `http://your.domain.com` in file `nginx.conf` `and config.js` with your own domain.
Start docker container with production file
```bash
docker-compose -f docker-compose-prod.yml up
```Now try your domain or localhost in your browser, this services now runs in the port `80` :muscle: :sunglasses: