|
|
|
version: "2.1"
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
image: server
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.server
|
|
|
|
ports:
|
|
|
|
- "2022:2022"
|
|
|
|
- "2023:2023"
|
|
|
|
volumes:
|
|
|
|
- ./logs:/log
|
|
|
|
- server-config:/configs
|
|
|
|
environment:
|
|
|
|
- LOGTYPE=SERVER
|
|
|
|
- VERBOSE=1
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
db:
|
|
|
|
image: influxdb:latest
|
|
|
|
ports:
|
|
|
|
- "8086:8086"
|
|
|
|
volumes:
|
|
|
|
- influx-data:/var/lib/influxdb2
|
|
|
|
- ./influxdb/startup:/docker-entrypoint-initdb.d
|
|
|
|
- server-config:/server-config
|
|
|
|
env_file:
|
|
|
|
- ./internal/configs/db.env
|
|
|
|
environment:
|
|
|
|
- DOCKER_INFLUXDB_INIT_MODE=setup
|
|
|
|
- DOCKER_INFLUXDB_INIT_USERNAME=admin
|
|
|
|
- DOCKER_INFLUXDB_INIT_PASSWORD=admin
|
|
|
|
- DOCKER_INFLUXDB_INIT_ORG=ForeLight
|
|
|
|
- DOCKER_INFLUXDB_INIT_BUCKET=default
|
|
|
|
grafana:
|
|
|
|
image: grafana/grafana-oss:latest
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
volumes:
|
|
|
|
- grafana-data:/var/lib/grafana
|
|
|
|
volumes:
|
|
|
|
grafana-data:
|
|
|
|
influx-data:
|
|
|
|
server-config:
|