Skip to content

Commit

Permalink
Add docker-compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
cblanc committed Dec 7, 2018
1 parent 8b66ec0 commit 07cb1a7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
POSTGRES_DB=postcodesiodb
POSTGRES_PASSWORD=secret
POSTGRES_USER=postcodesio
POSTGRES_HOST=db
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ Please make sure you have the following available:
- PostgreSQL (10 or greater)
- PostGIS extension [(Instructions)](http://postgis.net/install)

## Run with Docker

```
docker-compose up

This comment has been minimized.

Copy link
@cblanc

cblanc Dec 10, 2018

Author Member

🤯

```

## Self Hosting

Instructions for installing and hosting postcodes.io yourself can be found at [postcodes.io/about](https://postcodes.io/about#Install-notes). Methods include:
Expand Down
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
version: '3'
services:
api:
image: idealpostcodes/postcodes.io:latest
depends_on:
- db
environment:
- POSTGRES_DB
- POSTGRES_PASSWORD
- POSTGRES_USER
- POSTGRES_HOST
ports:
- 8000:8000
db:
image: idealpostcodes/postcodes.io.db:latest
environment:
- POSTGRES_DB
- POSTGRES_PASSWORD
- POSTGRES_HOST
- POSTGRES_USER

1 comment on commit 07cb1a7

@cblanc
Copy link
Member Author

@cblanc cblanc commented on 07cb1a7 Dec 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤯

Please sign in to comment.