docker for app container

This commit is contained in:
Andreas Knuth 2024-05-10 19:44:47 +02:00
parent abe9d81cd6
commit ccf898ad71
2 changed files with 30 additions and 0 deletions

6
app/.env Normal file
View File

@ -0,0 +1,6 @@
DB_HOST=postgres
DB_PORT=5432
DB_SCHEMA=public
POSTGRES_DB=bizmatch
POSTGRES_USER=bizmatch
POSTGRES_PASSWORD=xieng7Seih

24
app/docker-compose.yml Normal file
View File

@ -0,0 +1,24 @@
version: '3.8'
services:
postgres:
image: postgres:15.5-alpine3.19
volumes:
- bizmatch_volume:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "5432:5432"
networks:
- bizmatch
networks:
bizmatch:
external: true
volumes:
bizmatch_volume:
external: true