version: '3'

services:
  feeder:
    container_name: pryzm-feeder
    image: europe.pkg.dev/pryzm-zone/core/pryzm-feeder:0.3.4
    restart: unless-stopped
    volumes:
      - ./logs:/app/logs
      - ./config.yaml:/app/config.yaml
    network_mode: host
  postgres:
    container_name: pryzm-feeder-postgres
    image: timescale/timescaledb:2.13.0-pg16
    restart: always
    environment:
      POSTGRES_DB: postgres
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
      PGDATA: /var/lib/postgresql/data
    volumes:
      - ./pdata:/var/lib/postgresql/data
      - ./init.sql:/docker-entrypoint-initdb.d/feeder_init.sql
    network_mode: host
