Docker compose for scala and postgres

This commit is contained in:
Guntis Smaukstelis
2023-12-19 14:47:45 +02:00
parent 69458131bd
commit d08422f929
4 changed files with 53 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
version: '3'
services:
postgres:
image: postgres:latest
ports:
- "5432:5432"
environment:
POSTGRES_DB: weather-tool
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
volumes:
- /var/lib/postgresql/data:/var/lib/postgresql/data
scala-app:
build:
context: .
dockerfile: Dockerfile.local
volumes:
- $PWD:/app
ports:
- "8080:8080"
depends_on:
- postgres