Rework Docker setup, provide for remote DB, add example JSON

This commit is contained in:
Laurent Bossavit 2016-05-04 19:22:56 +02:00
parent 1f8741a14b
commit 6ef16787ab
8 changed files with 96 additions and 22 deletions

21
docker-compose.yml Normal file
View file

@ -0,0 +1,21 @@
version: '2'
services:
postgres:
build:
context: .
dockerfile: Dockerfile-postgres
environment:
POSTGRES_DB: oedb
POSTGRES_PASSWORD:
backend:
build:
context: .
dockerfile: Dockerfile-backend
ports:
- 8080:8080
environment:
DB_HOST: postgres
POSTGRES_PASSWORD:
volumes:
- .:/app/