version: "2.1" services: server: image: server build: context: . dockerfile: Dockerfile.server ports: - "2022:2022" - "2023:2023" volumes: - ./logs:/app/log environment: - LOGTYPE=SERVER - VERBOSE=1 depends_on: - db db: image: influxdb:latest ports: - "8086:8086" volumes: - influx-data:/var/lib/influxdb2 - influx-config:/etc/influxdb2 environment: - DOCKER_INFLUXDB_INIT_MODE=setup - DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXDB_USERNAME} - DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_PASSWORD} - DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG} - DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET} grafana: image: grafana/grafana-oss:latest ports: - "3000:3000" volumes: - grafana-data:/var/lib/grafana volumes: grafana-data: influx-data: influx-config: