services:
  timescaledb:
    image: timescale/timescaledb:2.18.2-pg16
    container_name: uforia-timescaledb
    restart: unless-stopped
    environment:
      POSTGRES_USER: ${UFORIA_DB_USER:-uforia}
      POSTGRES_PASSWORD: ${UFORIA_DB_PASSWORD:-uforia}
      POSTGRES_DB: ${UFORIA_DB_NAME:-uforia}
    ports:
      - "${UFORIA_DB_PORT:-5432}:5432"
    volumes:
      - timescaledb_data:/var/lib/postgresql/data

volumes:
  timescaledb_data:
