add docker compose and .env

This commit is contained in:
Mika Bomm 2024-10-08 11:01:45 +02:00
parent 00b6b09330
commit 02393bb2a3
4 changed files with 29 additions and 0 deletions

2
.env
View file

@ -0,0 +1,2 @@
DATABASE_URL=postgres://apfel:apfel@localhost:5432/apfel
JWT_SECRET_KEY=9b2cbd156a7a7e0e530acd780fdd16e8f37fa3fd8122c74a9b7e1ce6fc67980ed0e55572be4e382679a0c13d13f0a651d15e9e877bb579e957c899eb762b1bb4

3
crates/entity/src/lib.rs Normal file
View file

@ -0,0 +1,3 @@
//! `SeaORM` Entity, @generated by sea-orm-codegen 1.0.1
pub mod prelude;

View file

@ -0,0 +1 @@
//! `SeaORM` Entity, @generated by sea-orm-codegen 1.0.1

23
dev-compose.yml Normal file
View file

@ -0,0 +1,23 @@
services:
db:
container_name: apfelnetzwerk-postgres
image: postgres
environment:
POSTGRES_DB: apfel
POSTGRES_USER: apfel
POSTGRES_PASSWORD: apfel
PGDATA: /data/postgres
volumes:
- db:/data/postgres
ports:
- "5432:5432"
networks:
- db
restart: unless-stopped
networks:
db:
driver: bridge
volumes:
db: