From 7015de498b2d3e2df6b903e3ffbba0be1ef57218 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Sun, 28 Jun 2020 21:43:34 +0300 Subject: [PATCH] Fixed permissions for snmptraps volume --- docker-compose_v3_alpine_mysql_latest.yaml | 11 +++++++---- docker-compose_v3_alpine_mysql_local.yaml | 11 +++++++---- docker-compose_v3_alpine_pgsql_latest.yaml | 9 ++++++--- docker-compose_v3_alpine_pgsql_local.yaml | 9 ++++++--- docker-compose_v3_centos_mysql_latest.yaml | 11 +++++++---- docker-compose_v3_centos_mysql_local.yaml | 11 +++++++---- docker-compose_v3_centos_pgsql_latest.yaml | 9 ++++++--- docker-compose_v3_centos_pgsql_local.yaml | 9 ++++++--- docker-compose_v3_ubuntu_mysql_latest.yaml | 11 +++++++---- docker-compose_v3_ubuntu_mysql_local.yaml | 11 +++++++---- docker-compose_v3_ubuntu_pgsql_latest.yaml | 9 ++++++--- docker-compose_v3_ubuntu_pgsql_local.yaml | 9 ++++++--- 12 files changed, 78 insertions(+), 42 deletions(-) diff --git a/docker-compose_v3_alpine_mysql_latest.yaml b/docker-compose_v3_alpine_mysql_latest.yaml index 42d9d6662..8c6cb6043 100644 --- a/docker-compose_v3_alpine_mysql_latest.yaml +++ b/docker-compose_v3_alpine_mysql_latest.yaml @@ -13,7 +13,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - mysql-server:mysql-server - zabbix-java-gateway:zabbix-java-gateway @@ -76,7 +76,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -126,7 +126,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -342,7 +342,7 @@ services: ports: - "162:1162/udp" volumes: - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:rw + - snmptraps:/var/lib/zabbix/snmptraps deploy: resources: limits: @@ -409,6 +409,9 @@ networks: config: - subnet: 172.16.239.0/24 +volumes: + snmptraps: + secrets: MYSQL_USER: file: ./.MYSQL_USER diff --git a/docker-compose_v3_alpine_mysql_local.yaml b/docker-compose_v3_alpine_mysql_local.yaml index c7cadeb96..d73eca43c 100644 --- a/docker-compose_v3_alpine_mysql_local.yaml +++ b/docker-compose_v3_alpine_mysql_local.yaml @@ -17,7 +17,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - mysql-server:mysql-server - zabbix-java-gateway:zabbix-java-gateway @@ -84,7 +84,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -138,7 +138,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -374,7 +374,7 @@ services: ports: - "162:1162/udp" volumes: - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:rw + - snmptraps:/var/lib/zabbix/snmptraps:rw deploy: resources: limits: @@ -441,6 +441,9 @@ networks: config: - subnet: 172.16.239.0/24 +volumes: + snmptraps: + secrets: MYSQL_USER: file: ./.MYSQL_USER diff --git a/docker-compose_v3_alpine_pgsql_latest.yaml b/docker-compose_v3_alpine_pgsql_latest.yaml index ab9e1dc50..e8868e61a 100644 --- a/docker-compose_v3_alpine_pgsql_latest.yaml +++ b/docker-compose_v3_alpine_pgsql_latest.yaml @@ -75,7 +75,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -125,7 +125,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -345,7 +345,7 @@ services: ports: - "162:1162/udp" volumes: - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:rw + - snmptraps:/var/lib/zabbix/snmptraps:rw deploy: resources: limits: @@ -434,6 +434,9 @@ networks: config: - subnet: 172.16.239.0/24 +volumes: + snmptraps: + secrets: MYSQL_USER: file: ./.MYSQL_USER diff --git a/docker-compose_v3_alpine_pgsql_local.yaml b/docker-compose_v3_alpine_pgsql_local.yaml index 82018ecdd..87ee12c52 100644 --- a/docker-compose_v3_alpine_pgsql_local.yaml +++ b/docker-compose_v3_alpine_pgsql_local.yaml @@ -83,7 +83,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -137,7 +137,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -378,7 +378,7 @@ services: ports: - "162:1162/udp" volumes: - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:rw + - snmptraps:/var/lib/zabbix/snmptraps:rw deploy: resources: limits: @@ -467,6 +467,9 @@ networks: config: - subnet: 172.16.239.0/24 +volumes: + snmptraps: + secrets: MYSQL_USER: file: ./.MYSQL_USER diff --git a/docker-compose_v3_centos_mysql_latest.yaml b/docker-compose_v3_centos_mysql_latest.yaml index ebe7cec89..96823431b 100644 --- a/docker-compose_v3_centos_mysql_latest.yaml +++ b/docker-compose_v3_centos_mysql_latest.yaml @@ -13,7 +13,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - mysql-server:mysql-server - zabbix-java-gateway:zabbix-java-gateway @@ -76,7 +76,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -126,7 +126,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -342,7 +342,7 @@ services: ports: - "162:1162/udp" volumes: - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:rw + - snmptraps:/var/lib/zabbix/snmptraps:rw deploy: resources: limits: @@ -409,6 +409,9 @@ networks: config: - subnet: 172.16.239.0/24 +volumes: + snmptraps: + secrets: MYSQL_USER: file: ./.MYSQL_USER diff --git a/docker-compose_v3_centos_mysql_local.yaml b/docker-compose_v3_centos_mysql_local.yaml index 0ffe5ff01..912265837 100644 --- a/docker-compose_v3_centos_mysql_local.yaml +++ b/docker-compose_v3_centos_mysql_local.yaml @@ -17,7 +17,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - mysql-server:mysql-server - zabbix-java-gateway:zabbix-java-gateway @@ -84,7 +84,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -138,7 +138,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -374,7 +374,7 @@ services: ports: - "162:1162/udp" volumes: - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:rw + - snmptraps:/var/lib/zabbix/snmptraps:rw deploy: resources: limits: @@ -441,6 +441,9 @@ networks: config: - subnet: 172.16.239.0/24 +volumes: + snmptraps: + secrets: MYSQL_USER: file: ./.MYSQL_USER diff --git a/docker-compose_v3_centos_pgsql_latest.yaml b/docker-compose_v3_centos_pgsql_latest.yaml index ea81e8956..9bb461fc9 100644 --- a/docker-compose_v3_centos_pgsql_latest.yaml +++ b/docker-compose_v3_centos_pgsql_latest.yaml @@ -75,7 +75,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -125,7 +125,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -345,7 +345,7 @@ services: ports: - "162:1162/udp" volumes: - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:rw + - snmptraps:/var/lib/zabbix/snmptraps:rw deploy: resources: limits: @@ -434,6 +434,9 @@ networks: config: - subnet: 172.16.239.0/24 +volumes: + snmptraps: + secrets: MYSQL_USER: file: ./.MYSQL_USER diff --git a/docker-compose_v3_centos_pgsql_local.yaml b/docker-compose_v3_centos_pgsql_local.yaml index 3891b7669..eb22e1b30 100644 --- a/docker-compose_v3_centos_pgsql_local.yaml +++ b/docker-compose_v3_centos_pgsql_local.yaml @@ -77,7 +77,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -128,7 +128,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -357,7 +357,7 @@ services: ports: - "162:1162/udp" volumes: - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:rw + - snmptraps:/var/lib/zabbix/snmptraps:rw deploy: resources: limits: @@ -446,6 +446,9 @@ networks: config: - subnet: 172.16.239.0/24 +volumes: + snmptraps: + secrets: MYSQL_USER: file: ./.MYSQL_USER diff --git a/docker-compose_v3_ubuntu_mysql_latest.yaml b/docker-compose_v3_ubuntu_mysql_latest.yaml index a9dbb3ba7..a288e00e5 100644 --- a/docker-compose_v3_ubuntu_mysql_latest.yaml +++ b/docker-compose_v3_ubuntu_mysql_latest.yaml @@ -12,7 +12,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - mysql-server:mysql-server - zabbix-java-gateway:zabbix-java-gateway @@ -74,7 +74,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -123,7 +123,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -336,7 +336,7 @@ services: ports: - "162:1162/udp" volumes: - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:rw + - snmptraps:/var/lib/zabbix/snmptraps:rw deploy: resources: limits: @@ -403,6 +403,9 @@ networks: config: - subnet: 172.16.239.0/24 +volumes: + snmptraps: + secrets: MYSQL_USER: file: ./.MYSQL_USER diff --git a/docker-compose_v3_ubuntu_mysql_local.yaml b/docker-compose_v3_ubuntu_mysql_local.yaml index debf0d4b4..6c856314d 100644 --- a/docker-compose_v3_ubuntu_mysql_local.yaml +++ b/docker-compose_v3_ubuntu_mysql_local.yaml @@ -16,7 +16,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - mysql-server:mysql-server - zabbix-java-gateway:zabbix-java-gateway @@ -82,7 +82,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -135,7 +135,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -368,7 +368,7 @@ services: ports: - "162:1162/udp" volumes: - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:rw + - snmptraps:/var/lib/zabbix/snmptraps:rw deploy: resources: limits: @@ -435,6 +435,9 @@ networks: config: - subnet: 172.16.239.0/24 +volumes: + snmptraps: + secrets: MYSQL_USER: file: ./.MYSQL_USER diff --git a/docker-compose_v3_ubuntu_pgsql_latest.yaml b/docker-compose_v3_ubuntu_pgsql_latest.yaml index cb326decf..a8370e568 100644 --- a/docker-compose_v3_ubuntu_pgsql_latest.yaml +++ b/docker-compose_v3_ubuntu_pgsql_latest.yaml @@ -73,7 +73,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -122,7 +122,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -339,7 +339,7 @@ services: ports: - "162:1162/udp" volumes: - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:rw + - snmptraps:/var/lib/zabbix/snmptraps:rw deploy: resources: limits: @@ -428,6 +428,9 @@ networks: config: - subnet: 172.16.239.0/24 +volumes: + snmptraps: + secrets: MYSQL_USER: file: ./.MYSQL_USER diff --git a/docker-compose_v3_ubuntu_pgsql_local.yaml b/docker-compose_v3_ubuntu_pgsql_local.yaml index 279ed238b..ab19fe1f1 100644 --- a/docker-compose_v3_ubuntu_pgsql_local.yaml +++ b/docker-compose_v3_ubuntu_pgsql_local.yaml @@ -75,7 +75,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -125,7 +125,7 @@ services: - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro + - snmptraps:/var/lib/zabbix/snmptraps:rw links: - zabbix-server:zabbix-server - zabbix-java-gateway:zabbix-java-gateway @@ -348,7 +348,7 @@ services: ports: - "162:1162/udp" volumes: - - ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:rw + - snmptraps:/var/lib/zabbix/snmptraps:rw deploy: resources: limits: @@ -437,6 +437,9 @@ networks: config: - subnet: 172.16.239.0/24 +volumes: + snmptraps: + secrets: MYSQL_USER: file: ./.MYSQL_USER