first commit

This commit is contained in:
2026-03-13 15:35:42 +00:00
commit 593d652b4e
2 changed files with 32 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.env
/data

30
docker-compose.yml Normal file
View File

@@ -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