Co-authored-by: xiuting.xu <xiutingxt.xu@gmail.com> Reviewed-on: #28 Reviewed-by: yuyr <yuyr@zgclab.edu.cn> Reviewed-by: huhy <husteryezi@163.com> Reviewed-by: sundapeng <sundp@mail.zgclab.edu.cn>
38 lines
968 B
YAML
38 lines
968 B
YAML
services:
|
|
alertmanager:
|
|
build:
|
|
context: ../../../
|
|
dockerfile: src/alert/alertmanager/build/Dockerfile
|
|
args:
|
|
ARGUS_UID: ${ARGUS_UID:-2133}
|
|
ARGUS_GID: ${ARGUS_GID:-2015}
|
|
USE_INTRANET: ${USE_INTRANET:-false}
|
|
image: argus-alertmanager:latest
|
|
container_name: argus-alertmanager
|
|
environment:
|
|
- ALERTMANAGER_BASE_PATH=/private/argus/alert/alertmanager
|
|
- ARGUS_UID=${ARGUS_UID:-2133}
|
|
- ARGUS_GID=${ARGUS_GID:-2015}
|
|
ports:
|
|
- "${ARGUS_PORT:-9093}:9093"
|
|
volumes:
|
|
- ${DATA_ROOT:-./data}/alert/alertmanager:/private/argus/alert/alertmanager
|
|
- ${DATA_ROOT:-./data}/etc:/private/argus/etc
|
|
networks:
|
|
- argus-debug-net
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
networks:
|
|
argus-debug-net:
|
|
driver: bridge
|
|
name: argus-debug-net
|
|
|
|
volumes:
|
|
alertmanager_data:
|
|
driver: local
|