feat: add database
This commit is contained in:
parent
3faa214d18
commit
2771cb354e
3
.env
Normal file
3
.env
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
POSTGRES_USER='postgres'
|
||||||
|
POSTGRES_PASSWORD='123456'
|
||||||
|
POSTGRES_PORT=5434
|
||||||
16
compose.yml
Normal file
16
compose.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
version: '3.9'
|
||||||
|
name: tinder-clone
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
container_name: tinder-clone-postgres
|
||||||
|
image: postgres:15-alpine
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: ${POSTGRES_USER}
|
||||||
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
|
ports:
|
||||||
|
- "${POSTGRES_PORT}:5432"
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
||||||
Loading…
x
Reference in New Issue
Block a user