init version for docker-compose.yml

This commit is contained in:
Mika Bomm 2024-08-29 22:02:56 +02:00
parent 7d982eec0b
commit 4f7e151ebc
2 changed files with 26 additions and 0 deletions

2
.env.example Normal file
View file

@ -0,0 +1,2 @@
DB_USER=
DB_PASSWORD=

24
docker-compose.yml Normal file
View file

@ -0,0 +1,24 @@
services:
db:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
PGDATA: /data/postgres
volumes:
- db:/data/postgres
ports:
- "5332:5432"
networks:
- db
env_file:
- .env
restart: unless-stopped
networks:
db:
driver: bridge
volumes:
db: