Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres:15
|
||||
environment:
|
||||
POSTGRES_USER: monitor
|
||||
POSTGRES_PASSWORD: monitorpassword
|
||||
POSTGRES_DB: vdimonitor
|
||||
ports:
|
||||
- "5433:5432"
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
|
||||
backend:
|
||||
image: vdimonitor-backend:latest
|
||||
ports:
|
||||
- "8081:8080"
|
||||
environment:
|
||||
DB_URL: postgres://monitor:monitorpassword@db:5432/vdimonitor?sslmode=disable
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
Reference in New Issue
Block a user