dockerfile, other bs

This commit is contained in:
Daniel
2024-11-14 22:42:38 +02:00
parent 80640ebeab
commit 7678ea3812
9 changed files with 359 additions and 13 deletions

30
docker-compose.yml Normal file
View File

@@ -0,0 +1,30 @@
version: '3.8'
services:
database:
image: postgres:latest
container_name: accounting-db
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: accounting
ports:
- "5432:5432"
networks:
- app-network
app:
build:
context: .
container_name: java-app
ports:
- "8080:8080"
- "8081:8081"
depends_on:
- database
networks:
- app-network
networks:
app-network:
driver: bridge