Added basic docker-compose file to run the backend alongside a database

This commit is contained in:
Niggl1999 2020-05-26 17:52:28 +02:00
parent 97295c293c
commit 84866c9bdc
1 changed files with 27 additions and 0 deletions

27
docker-compose.yml Normal file
View File

@ -0,0 +1,27 @@
version: "3"
services:
db:
image: postgres:11-alpine
environment:
POSTGRES_DB: taskboard
POSTGRES_PASSWORD: c6gXud7YvBWp2sgxSgy4wRN
POSTGRES_USER: scrum
restart: unless-stopped
volumes:
- db-data:/var/lib/postgresql/data
networks:
- default
app:
build:
context: .
restart: unless-stopped
depends_on:
- db
networks:
- default
ports:
- "8080:80"
volumes:
db-data: