add docker compose and .env
This commit is contained in:
parent
00b6b09330
commit
02393bb2a3
2
.env
2
.env
|
@ -0,0 +1,2 @@
|
|||
DATABASE_URL=postgres://apfel:apfel@localhost:5432/apfel
|
||||
JWT_SECRET_KEY=9b2cbd156a7a7e0e530acd780fdd16e8f37fa3fd8122c74a9b7e1ce6fc67980ed0e55572be4e382679a0c13d13f0a651d15e9e877bb579e957c899eb762b1bb4
|
3
crates/entity/src/lib.rs
Normal file
3
crates/entity/src/lib.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
//! `SeaORM` Entity, @generated by sea-orm-codegen 1.0.1
|
||||
|
||||
pub mod prelude;
|
1
crates/entity/src/prelude.rs
Normal file
1
crates/entity/src/prelude.rs
Normal file
|
@ -0,0 +1 @@
|
|||
//! `SeaORM` Entity, @generated by sea-orm-codegen 1.0.1
|
23
dev-compose.yml
Normal file
23
dev-compose.yml
Normal 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:
|
Loading…
Reference in a new issue