ATlast — you'll never need to find your favorites on another platform again. Find your favs in the ATmosphere.
atproto
at master 46 lines 1.2 kB view raw
1# Development Docker Compose - Local Testing 2# Use this during Step 3 migration to run PostgreSQL locally 3 4version: "3.8" 5 6services: 7 # PostgreSQL Database 8 database: 9 image: postgres:16-alpine 10 restart: unless-stopped 11 environment: 12 POSTGRES_USER: atlast 13 POSTGRES_PASSWORD: localdev 14 POSTGRES_DB: atlast 15 ports: 16 - "5432:5432" 17 volumes: 18 - pgdata-dev:/var/lib/postgresql/data 19 - ../scripts/init-db.sql:/docker-entrypoint-initdb.d/01-init.sql 20 - ../scripts/seed-test-data.sql:/docker-entrypoint-initdb.d/02-seed.sql 21 healthcheck: 22 test: ["CMD-SHELL", "pg_isready -U atlast"] 23 interval: 10s 24 timeout: 5s 25 retries: 5 26 27 # Redis (for BullMQ - add when needed in Step 4) 28 redis: 29 image: redis:7-alpine 30 restart: unless-stopped 31 command: redis-server --appendonly yes 32 ports: 33 - "6379:6379" 34 volumes: 35 - redisdata-dev:/data 36 healthcheck: 37 test: ["CMD", "redis-cli", "ping"] 38 interval: 10s 39 timeout: 3s 40 retries: 3 41 profiles: 42 - with-redis # Only start with: docker compose --profile with-redis up 43 44volumes: 45 pgdata-dev: 46 redisdata-dev: