First working draft docker-compose

This commit is contained in:
MartenBE
2020-07-30 16:57:39 +02:00
parent be2c525d9a
commit d555d94be9
16 changed files with 77 additions and 541 deletions

25
docker-compose.yml Normal file
View File

@@ -0,0 +1,25 @@
version: "3.7"
services:
db:
image: "postgres"
environment:
- "POSTGRES_PASSWORD=pyshelf"
- "POSTGRES_USER=pyshelf"
- "POSTGRES_DB=pyshelf"
volumes:
- "pgdata:/var/lib/postgresql/data/"
pyshelf:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8000"
volumes:
- "./books:/books"
depends_on:
- db
volumes:
pgdata: