services: klhz.trader.service: restart: always image: klhz_trader_prod container_name: klhz_trader hostname: klhz_trader ports: - 8080:8080 build: context: . dockerfile: KLHZ.Trader.Service/Dockerfile environment: LokiUrl: "http://loki:3100" TgBotConfig__Token: "${TG_BOT_TOKEN}" ExchangeConfig__Token: "${EXCHANGE_API_TOKEN}" ConnectionStrings__PostgresConnection: "${PG_CONNECTION_STRING}" ExchangeConfig__ExchangeDataRecievingEnabled: "${PRICES_RECIEVING_ENABLED}" # postgresql: # ports: # - 15433:5432 # container_name: debug_postgresql_16 # hostname: debug_postgresql_16 # image: postgres:16 # restart: always # command: # - "postgres" # - "-c" # - "max_connections=100" # - "-c" # - "shared_buffers=512MB" # - "-c" # - "temp_buffers=64MB" # - "-c" # - "log_statement=all" # environment: # POSTGRES_PASSWORD: "${PG_PWD}" # POSTGRES_DB: trading # volumes: # - traderdata:/var/lib/postgresql/data # prometheus: # hostname: prometheus # image: prom/prometheus # container_name: prometheus # ports: # - 9191:9090 # restart: always # volumes: # - ./KLHZ.Trader.Infrastructure/prometheus/:/etc/prometheus/ # - prom_data:/prometheus # grafana: # image: grafana/grafana # container_name: grafana # ports: # - 1300:3000 # restart: always # environment: # GF_SECURITY_ADMIN_USER: "${GF_SECURITY_ADMIN_USER}" # GF_SECURITY_ADMIN_PASSWORD: "${GF_SECURITY_ADMIN_PASSWORD}" # volumes: # - graphana:/etc/grafana/provisioning/datasources # loki: # hostname: loki # image: grafana/loki:latest # container_name: loki # restart: always # ports: # - "2300:3100" # volumes: # - ./KLHZ.Trader.Infrastructure/loki/loki-config.yaml:/etc/loki/local-config.yaml # - loki_data:/loki # command: -config.file=/etc/loki/local-config.yaml klhz.trader.historyloader: image: klhztraderhistoryloader ports: - "5004:8080" build: context: . dockerfile: KLHZ.Trader.HistoryLoader/Dockerfile environment: ExchangeConfig__Token: "${EXCHANGE_API_TOKEN}" ConnectionStrings__PostgresConnection: "${PG_CONNECTION_STRING}" volumes: traderdata: prom_data: graphana: loki_data: