version: "3.9" name: bigeye-agent services: bigeye-agent: # defines the image being used (ie what would normally be done with docker pull image: "docker.io/bigeyedata/agent:latest" # This tells docker to restart if the container fails, the OS is restarted etc restart: always # This is how we will pass configuration files into the container, by mounting a directory. # The path for the source directory can be changed as desired, but the path on the docker # container that is being mounted must remain /app/config volumes: - "${PWD}/agent_config:/app/config" # Rotate logs to restrict total size to 1GB logging: driver: "json-file" options: max-size: "100m" max-file: "10" # The below can be uncommented when using environment variables for data source credentials instead of plain text. # https://docs.bigeye.com/docs/agent-connection#using-environment-variables-for-source-credentials # environment: # - SECRET_USERNAME # - SECRET_PASSWORD