users table endpoints. auth to fix
This commit is contained in:
45
compose.yml
Normal file
45
compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user