Files
picrinth-server/compose.yml
T

59 lines
1.4 KiB
YAML

services:
picrinth-server:
image: git.frik.su/Beesquit/picrinth-server:latest
container_name: prcrinth-server
environment:
# Configuration
secret_key: "your-key"
access_token_expiration_time: 10080
join_code_length: 8
swagger_enabled: false
# Extra configuration (don't touch if you don't know what this is)
algorithm: "HS256"
# 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
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
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
networks:
- local
volumes:
pgdata:
driver: local
networks:
local:
driver: bridge