A discord bot for teal.fm
discord tealfm music

data persistence for db

besaid.zone a12fa09e e909eb80

verified
Changed files
+13 -2
+13 -2
docker-compose.yml
··· 18 18 PUBLIC_URL: "${PUBLIC_URL:?PUBLIC_URL is required}" 19 19 PRIVATE_KEYS: "${PRIVATE_KEYS:?PRIVATE_KEYS is required}" 20 20 COOKIE_SECRET: "${COOKIE_SECRET:?COOKIE_SECRET is required}" 21 + healthcheck: 22 + test: ["CMD", "wget", "-q", "--spider", "http://localhost:8002/health"] 23 + interval: 30s 24 + timeout: 10s 25 + retries: 3 26 + start_period: 10s 21 27 22 28 tapper: 23 29 container_name: tapper ··· 51 57 db: 52 58 image: postgres:18.1 53 59 healthcheck: 54 - test: ["CMD-SHELL", "pg_isready -U postgres -d tealfmbotdb"] 60 + test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] 55 61 interval: 10s 56 62 retries: 5 57 63 start_period: 30s 58 64 timeout: 10s 59 65 restart: always 60 - shm_size: 128mb 61 66 environment: 62 67 POSTGRES_USER: "${POSTGRES_USER:?POSTGRES_USER is required}" 63 68 POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}" 64 69 POSTGRES_DB: "${POSTGRES_DB:?POSTGRES_DB is required}" 65 70 ports: 66 71 - 5432:5432 72 + 73 + volumes: 74 + - './postgres-data:/var/lib/postgresql/data' 75 + 76 + volumes: 77 + postgres-data: