commit 593d652b4e52d2633c1e185765dde8e50b5eb068 Author: kbrianngeno Date: Fri Mar 13 15:35:42 2026 +0000 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c06317a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env +/data \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1a6855a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,30 @@ +services: + db: + image: postgres:17.1 + container_name: postgres + restart: always + ports: + - ${PORT}:5432 + environment: + POSTGRES_DB: ${POSTGRES_DB} + POSTGRES_USER: ${POSTGRES_USER} + PGUSER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + healthcheck: + test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] + interval: 1s + timeout: 5s + retries: 10 + volumes: + - ./data:/var/lib/postgresql/data + networks: + - nginx + +volumes: + postgres_data: + driver: local + +networks: + nginx: + driver: bridge + external: true \ No newline at end of file