version: '3'

services:
  mongoose-console:
    image: emcmongoose/mongoose-console:${CONSOLE_VER}
    ports:
    - "${NGINX_PORT}:80"
  grafana:
    image: grafana/grafana:${GRAFANA_VER}
    ports:
    - "${GRAFANA_PORT}:${GRAFANA_PORT}"
  prometheus:
    image: prom/prometheus:${PROMETHEUS_VER}
    ports:
    - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}"

version: '3'

services:
  mongoose-console:
    image: emcmongoose/mongoose-console:${CONSOLE_VER}
    ports:
    - "${CONSOLE_PORT}:${CONSOLE_PORT}"
    env_file:
    - .env
  grafana:
    image: grafana/grafana:${GRAFANA_VER}
    ports:
    - "${GRAFANA_PORT}:${GRAFANA_PORT}"
  prometheus:
    image: prom/prometheus:${PROMETHEUS_VER}
    ports:
    - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}"

Change compose file so the image would use environment variables listed in .env.
Change compose file so the image would use environment variables listed in .env.
