feature: now using uv + moved to asyncpg from psycopg2

This commit is contained in:
2026-07-10 15:03:42 +03:00
parent ccec4cdf27
commit 2e5e0ed8ca
32 changed files with 1702 additions and 964 deletions
+20 -8
View File
@@ -3,25 +3,31 @@ services:
image: git.frik.su/Beesquit/picrinth-server:latest
container_name: prcrinth-server
environment:
# This should be configured
access_token_expiration_time: 10080
# Configuration
secret_key: "your-key"
swagger_enabled: true
access_token_expiration_time: 10080
join_code_length: 8
# This part should not be touched. Probably
swagger_enabled: false
# Extra configuration (don't touch if you don't know what this is)
algorithm: "HS256"
db_host: "127.0.0.1" # review this later
db_port: 5434
# DB (postgres) settings
# change if you have another instance of postgress you want to use
db_host: "picrinth-postgres"
db_port: 5432
db_name: "picrinth"
db_user: "postgres"
db_password: "postgres"
ports:
- 8000:8000
volumes:
- ./data:/app/data
restart: unless-stopped
networks:
- local
postgres:
image: postgres:latest
container_name: picrinth_postgres
container_name: picrinth-postgres
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
@@ -29,7 +35,7 @@ services:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256"
ports:
- 5432:5432
- :5432
volumes:
- ./pgdata:/var/lib/postgresql/data/pgdata
healthcheck:
@@ -40,7 +46,13 @@ services:
restart: unless-stopped
tty: true
stdin_open: true
networks:
- local
volumes:
pgdata:
driver: local
networks:
local:
driver: bridge