services: bot: build: . container_name: telegram-tinder-bot restart: unless-stopped env_file: .env environment: - NODE_ENV=production - DB_HOST=${DB_HOST:-db} - DB_PORT=${DB_PORT:-5432} - DB_NAME=${DB_NAME:-telegram_tinder_bot} - DB_USERNAME=${DB_USERNAME:-postgres} - DB_PASSWORD=${DB_PASSWORD:-postgres} volumes: - ./uploads:/app/uploads:rw - ./logs:/app/logs:rw networks: - bot-network healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"] interval: 30s timeout: 5s retries: 3 start_period: 10s db: image: postgres:15-alpine container_name: postgres-tinder restart: unless-stopped environment: - POSTGRES_DB=${DB_NAME:-telegram_tinder_bot} - POSTGRES_USER=${DB_USERNAME:-postgres} - POSTGRES_PASSWORD=${DB_PASSWORD:-postgres} volumes: - postgres_data:/var/lib/postgresql/data ports: - "5433:5432" networks: - bot-network healthcheck: test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME:-postgres} -d ${DB_NAME:-telegram_tinder_bot}"] interval: 10s timeout: 5s retries: 5 start_period: 10s adminer: image: adminer:latest container_name: adminer-tinder restart: unless-stopped ports: - "8080:8080" networks: - bot-network volumes: postgres_data: networks: bot-network: driver: bridge