services:
  trips:
    build: .
    container_name: trips
    restart: unless-stopped
    ports:
      - "8087:8087"
    volumes:
      - ./data:/app/data
    env_file:
      - .env
    environment:
      - TZ=America/Chicago

  trips-frontend:
    build: ./frontend
    container_name: trips-frontend
    restart: unless-stopped
    ports:
      - "8091:3000"
    environment:
      - ORIGIN=https://trips.quadjourney.com
      - VITE_API_URL=http://trips:8087
      - TRIPS_API_KEY=${TRIPS_API_KEY}
      - IMMICH_URL=${IMMICH_URL}
      - IMMICH_API_KEY=${IMMICH_API_KEY}
      - TZ=America/Chicago
    depends_on:
      - trips
