diff --git a/.env b/.env new file mode 100644 index 0000000..2a0c8a9 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +POSTGRES_USER='postgres' +POSTGRES_PASSWORD='123456' +POSTGRES_PORT=5434 \ No newline at end of file diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..8fb5d7f --- /dev/null +++ b/compose.yml @@ -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: