version: '3' services: bot: build: src/ entrypoint: - python - bot_main.py depends_on: - db - influx environment: - CLIENT_ID - TOKEN restart: always api: build: src/ entrypoint: - python - api_main.py depends_on: - db restart: always ports: - "2939:8080" db: image: postgres:alpine volumes: - "db_data:/var/lib/postgresql/data" restart: always influx: image: influxdb:alpine volumes: - "influx_data:/var/lib/influxdb:Z" restart: always grafana: build: grafana depends_on: - influx ports: - "2938:3000" environment: GF_SECURITY_ADMIN_USER: "${GRAFANA_USERNAME}" GF_SECURITY_ADMIN_PASSWORD: "${GRAFANA_PASSWORD}" restart: always volumes: db_data: influx_data: