users table endpoints. auth to fix

This commit is contained in:
2025-07-25 18:38:24 +03:00
parent e729e84872
commit 08d2ebb1b7
21 changed files with 734 additions and 2 deletions

45
compose.yml Normal file
View File

@ -0,0 +1,45 @@
services:
picrinth-server:
image: git.frik.su/Beesquit/picrinth-server:latest
container_name: prcrinth-server
environment:
# This should be configured
access_token_expiration_time: 10080
secret_key: "your-key"
swagger_enabled: true
# This part should not be touched. Probably
algorithm: "HS256"
db_host: "127.0.0.1" # review this later
db_port: 5434
db_name: "picrinth"
db_user: "postgres"
db_password: "postgres"
volumes:
- ./data:/app/data
restart: unless-stopped
postgres:
image: postgres:latest
container_name: picrinth_postgres
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "picrinth"
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256"
ports:
- 5432:5432
volumes:
- ./pgdata:/var/lib/postgresql/data/pgdata
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $$postgres_user $$postgres_db" ]
interval: 30s
timeout: 10s
retries: 5
restart: unless-stopped
tty: true
stdin_open: true
volumes:
pgdata:
driver: local