A decentralized event management and credentialing system built on atproto.
1version: '3.8'
2
3services:
4 postgres:
5 image: postgres:16
6 container_name: acudo-postgres
7 restart: unless-stopped
8 environment:
9 POSTGRES_DB: acudo
10 POSTGRES_USER: postgres
11 POSTGRES_PASSWORD: postgres
12 POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=C --lc-ctype=C"
13 ports:
14 - "5437:5432"
15 volumes:
16 - postgres_data:/var/lib/postgresql/data
17 - ./init-db.sql:/docker-entrypoint-initdb.d/init-db.sql:ro
18 healthcheck:
19 test: ["CMD-SHELL", "pg_isready -U postgres -d acudo"]
20 interval: 5s
21 timeout: 5s
22 retries: 5
23 command: >
24 postgres
25 -c shared_preload_libraries=pg_stat_statements
26 -c pg_stat_statements.track=all
27 -c max_connections=200
28 -c shared_buffers=256MB
29 -c effective_cache_size=1GB
30 -c maintenance_work_mem=64MB
31 -c checkpoint_completion_target=0.9
32 -c wal_buffers=16MB
33 -c default_statistics_target=100
34 -c random_page_cost=1.1
35 -c effective_io_concurrency=200
36 -c work_mem=4MB
37 -c min_wal_size=1GB
38 -c max_wal_size=4GB
39
40volumes:
41 postgres_data:
42 driver: local