mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-21 07:13:31 +01:00
Using long syntax to expose ports
This commit is contained in:
parent
c7951107d9
commit
5aaea09b8a
@ -1,7 +1,11 @@
|
||||
services:
|
||||
server:
|
||||
ports:
|
||||
- "${ZABBIX_SERVER_PORT}:10051"
|
||||
- name: zabbix-trapper
|
||||
target: 10051
|
||||
published: "${ZABBIX_SERVER_PORT}"
|
||||
protocol: tcp
|
||||
app_protocol: zabbix-trapper
|
||||
restart: "${RESTART_POLICY}"
|
||||
attach: true
|
||||
volumes:
|
||||
@ -14,7 +18,7 @@ services:
|
||||
- ${DATA_DIRECTORY}/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro
|
||||
- ${DATA_DIRECTORY}/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro
|
||||
- ${DATA_DIRECTORY}/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro
|
||||
- snmptraps:/var/lib/zabbix/snmptraps:ro
|
||||
- snmptraps:/var/lib/zabbix/snmptraps:roz
|
||||
tmpfs: /tmp
|
||||
ulimits:
|
||||
nproc: 65535
|
||||
@ -146,7 +150,11 @@ services:
|
||||
extends:
|
||||
service: proxy
|
||||
ports:
|
||||
- "${ZABBIX_PROXY_SQLITE3_PORT}:10051"
|
||||
- name: zabbix-trapper
|
||||
target: 10051
|
||||
published: "${ZABBIX_PROXY_SQLITE3_PORT}"
|
||||
protocol: tcp
|
||||
app_protocol: zabbix-trapper
|
||||
env_file:
|
||||
- ${ENV_VARS_DIRECTORY}/.env_prx_sqlite3
|
||||
- path: ${ENV_VARS_DIRECTORY}/.env_prx_sqlite3_override
|
||||
@ -163,7 +171,11 @@ services:
|
||||
extends:
|
||||
service: proxy
|
||||
ports:
|
||||
- "${ZABBIX_PROXY_MYSQL_PORT}:10051"
|
||||
- name: zabbix-trapper
|
||||
target: 10051
|
||||
published: "${ZABBIX_PROXY_MYSQL_PORT}"
|
||||
protocol: tcp
|
||||
app_protocol: zabbix-trapper
|
||||
# volumes:
|
||||
# - dbsocket:/var/run/mysqld/
|
||||
env_file:
|
||||
@ -192,8 +204,16 @@ services:
|
||||
profiles:
|
||||
- all
|
||||
ports:
|
||||
- "${ZABBIX_WEB_APACHE_HTTP_PORT}:8080"
|
||||
- "${ZABBIX_WEB_APACHE_HTTPS_PORT}:8443"
|
||||
- name: web-http
|
||||
target: 8080
|
||||
published: "${ZABBIX_WEB_APACHE_HTTP_PORT}"
|
||||
protocol: tcp
|
||||
app_protocol: http
|
||||
- name: web-https
|
||||
target: 8443
|
||||
published: "${ZABBIX_WEB_APACHE_HTTPS_PORT}"
|
||||
protocol: tcp
|
||||
app_protocol: https
|
||||
restart: "${RESTART_POLICY}"
|
||||
attach: false
|
||||
volumes:
|
||||
@ -270,8 +290,16 @@ services:
|
||||
|
||||
web-nginx:
|
||||
ports:
|
||||
- "${ZABBIX_WEB_NGINX_HTTP_PORT}:8080"
|
||||
- "${ZABBIX_WEB_NGINX_HTTPS_PORT}:8443"
|
||||
- name: web-http
|
||||
target: 8080
|
||||
published: "${ZABBIX_WEB_NGINX_HTTP_PORT}"
|
||||
protocol: tcp
|
||||
app_protocol: http
|
||||
- name: web-https
|
||||
target: 8443
|
||||
published: "${ZABBIX_WEB_NGINX_HTTPS_PORT}"
|
||||
protocol: tcp
|
||||
app_protocol: https
|
||||
restart: "${RESTART_POLICY}"
|
||||
attach: false
|
||||
volumes:
|
||||
@ -355,7 +383,11 @@ services:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "${ZABBIX_AGENT_PORT}:10050"
|
||||
- name: zabbix-agent
|
||||
target: 10050
|
||||
published: "${ZABBIX_AGENT_PORT}"
|
||||
protocol: tcp
|
||||
app_protocol: zabbix-agent
|
||||
restart: "${RESTART_POLICY}"
|
||||
attach: false
|
||||
volumes:
|
||||
@ -396,7 +428,11 @@ services:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "${ZABBIX_AGENT2_PORT}:10050"
|
||||
- name: zabbix-agent
|
||||
target: 10050
|
||||
published: "${ZABBIX_AGENT2_PORT}"
|
||||
protocol: tcp
|
||||
app_protocol: zabbix-agent
|
||||
restart: "${RESTART_POLICY}"
|
||||
attach: false
|
||||
volumes:
|
||||
@ -437,7 +473,10 @@ services:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "${ZABBIX_JAVA_GATEWAY_PORT}:10052"
|
||||
- name: zabbix-java-gw
|
||||
target: 10052
|
||||
published: "${ZABBIX_JAVA_GATEWAY_PORT}"
|
||||
protocol: tcp
|
||||
restart: "${RESTART_POLICY}"
|
||||
attach: false
|
||||
deploy:
|
||||
@ -471,12 +510,16 @@ services:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "${ZABBIX_SNMPTRAPS_PORT}:1162/udp"
|
||||
- name: snmptrap
|
||||
target: 1162
|
||||
published: "${ZABBIX_SNMPTRAPS_PORT}"
|
||||
protocol: udp
|
||||
app_protocol: snmptrap
|
||||
restart: "${RESTART_POLICY}"
|
||||
attach: false
|
||||
read_only: true
|
||||
volumes:
|
||||
- snmptraps:/var/lib/zabbix/snmptraps:rw
|
||||
- snmptraps:/var/lib/zabbix/snmptraps:rwz
|
||||
tmpfs: /tmp
|
||||
deploy:
|
||||
resources:
|
||||
@ -506,7 +549,10 @@ services:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "${ZABBIX_WEB_SERVICE_PORT}:10053"
|
||||
- name: zabbix-web-service
|
||||
target: 10053
|
||||
published: "${ZABBIX_WEB_SERVICE_PORT}"
|
||||
protocol: tcp
|
||||
restart: "${RESTART_POLICY}"
|
||||
attach: false
|
||||
volumes:
|
||||
|
Loading…
Reference in New Issue
Block a user