Rework Docker setup, provide for remote DB, add example JSON
This commit is contained in:
parent
1f8741a14b
commit
6ef16787ab
8 changed files with 96 additions and 22 deletions
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal 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/
|
Loading…
Add table
Add a link
Reference in a new issue