Skip to content

Commit

Permalink
Add docker-compose example and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lubekpl committed Sep 23, 2017
1 parent 43d85b7 commit 805ec20
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '2'
services:
postgres:
image: postgres:9.5-alpine
restart: always
volumes:
- ~/stringer:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=super_secret_password
- POSTGRES_USER=db_user
- POSTGRES_DB=stringer

web:
image: mdswanson/stringer
depends_on:
- postgres
restart: always
ports:
- 80:8080
environment:
- SECRET_TOKEN=YOUR_SECRET_TOKEN
- PORT=8080
- DATABASE_URL=postgres://db_user:super_secret_password@postgres:5432/stringer
7 changes: 5 additions & 2 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ Visit `http://localhost:8080` and enjoy Stringer!
**One caveat**: Stringer was not designed to be used with sqlite so you might run into some issues if you
have Stringer fetch many feeds. See [this issue](https://github.com/swanson/stringer/issues/164) for details.

## Production ready setup
## Production ready setup using docker-compose

Download [docker-compose.yml](../docker-compose.yml) and in the corresponding foler, run `docker-compose up -d`, give it a second and visit `localhost`

## Production ready manual setup

The following steps can be used to setup Stringer on Docker, using a Postgres database also running on Docker.

Expand Down Expand Up @@ -115,4 +119,3 @@ server {
}
}
```

0 comments on commit 805ec20

Please sign in to comment.