diff --git a/docker-compose_v3_alpine_mysql_latest.yaml b/docker-compose_v3_alpine_mysql_latest.yaml index 4d91c3176..2745165b2 100644 --- a/docker-compose_v3_alpine_mysql_latest.yaml +++ b/docker-compose_v3_alpine_mysql_latest.yaml @@ -14,7 +14,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 @@ -80,7 +80,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 @@ -130,7 +130,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 @@ -361,7 +361,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: @@ -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_alpine_mysql_local.yaml b/docker-compose_v3_alpine_mysql_local.yaml index d0e876322..9f784a5e1 100644 --- a/docker-compose_v3_alpine_mysql_local.yaml +++ b/docker-compose_v3_alpine_mysql_local.yaml @@ -18,7 +18,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 @@ -88,7 +88,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 @@ -142,7 +142,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 @@ -393,7 +393,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: @@ -478,6 +478,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 b9c5ab00f..36060cf68 100644 --- a/docker-compose_v3_alpine_pgsql_latest.yaml +++ b/docker-compose_v3_alpine_pgsql_latest.yaml @@ -79,7 +79,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 @@ -129,7 +129,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: @@ -461,6 +461,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 9ad5c448e..d47443bec 100644 --- a/docker-compose_v3_alpine_pgsql_local.yaml +++ b/docker-compose_v3_alpine_pgsql_local.yaml @@ -87,7 +87,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 @@ -141,7 +141,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 @@ -389,7 +389,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: @@ -493,6 +493,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 a2d7d0e28..0f78fbcf1 100644 --- a/docker-compose_v3_centos_mysql_latest.yaml +++ b/docker-compose_v3_centos_mysql_latest.yaml @@ -14,7 +14,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 @@ -80,7 +80,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 @@ -130,7 +130,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 @@ -361,7 +361,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_centos_mysql_local.yaml b/docker-compose_v3_centos_mysql_local.yaml index 9e68fa9a0..9ec354776 100644 --- a/docker-compose_v3_centos_mysql_local.yaml +++ b/docker-compose_v3_centos_mysql_local.yaml @@ -18,7 +18,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 @@ -88,7 +88,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 @@ -142,7 +142,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 @@ -393,7 +393,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: @@ -478,6 +478,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 84536132b..4bb646538 100644 --- a/docker-compose_v3_centos_pgsql_latest.yaml +++ b/docker-compose_v3_centos_pgsql_latest.yaml @@ -79,7 +79,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 @@ -129,7 +129,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: @@ -461,6 +461,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 bffa4b75c..dc33efe58 100644 --- a/docker-compose_v3_centos_pgsql_local.yaml +++ b/docker-compose_v3_centos_pgsql_local.yaml @@ -87,7 +87,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 @@ -141,7 +141,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 @@ -389,7 +389,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: @@ -493,6 +493,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 ded82fce4..030953363 100644 --- a/docker-compose_v3_ubuntu_mysql_latest.yaml +++ b/docker-compose_v3_ubuntu_mysql_latest.yaml @@ -14,7 +14,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 @@ -80,7 +80,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 @@ -130,7 +130,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 @@ -361,7 +361,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_local.yaml b/docker-compose_v3_ubuntu_mysql_local.yaml index f1d83f472..2924b6f48 100644 --- a/docker-compose_v3_ubuntu_mysql_local.yaml +++ b/docker-compose_v3_ubuntu_mysql_local.yaml @@ -18,7 +18,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 @@ -88,7 +88,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 @@ -142,7 +142,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 @@ -393,7 +393,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: @@ -478,6 +478,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 c73dc2be8..7923071dd 100644 --- a/docker-compose_v3_ubuntu_pgsql_latest.yaml +++ b/docker-compose_v3_ubuntu_pgsql_latest.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 @@ -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 @@ -351,7 +351,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: @@ -455,6 +455,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 3f74ad745..e1beecc56 100644 --- a/docker-compose_v3_ubuntu_pgsql_local.yaml +++ b/docker-compose_v3_ubuntu_pgsql_local.yaml @@ -85,7 +85,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 @@ -383,7 +383,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: @@ -487,6 +487,9 @@ networks: config: - subnet: 172.16.239.0/24 +volumes: + snmptraps: + secrets: MYSQL_USER: file: ./.MYSQL_USER