SHARE
TWEET

Untitled

a guest Oct 21st, 2019 706 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2.  
  3. volumes:
  4.   db_data:
  5.     driver: local
  6.   grafana_data:
  7.     driver: local
  8.  
  9. networks:
  10.   app_net:
  11.     ipam:
  12.       driver: default
  13.       config:
  14.         - subnet: 172.25.0.0/24
  15.  
  16. services:
  17.   zabbix-server:
  18.     container_name: zabbix-server
  19.     hostname: zabbix-server
  20.     restart: unless-stopped
  21.     image: zabbix/zabbix-server-pgsql:alpine-4.0-latest
  22.     environment:
  23.       - DB_SERVER_PORT=5432
  24.       - DB_SERVER_HOST=zabbix-db
  25.       - POSTGRES_DB=zabbix
  26.       - POSTGRES_USER=zabbix
  27.       - POSTGRES_PASSWORD=zabbix
  28.     ports:
  29.       - '10051:10051'
  30.     volumes:
  31.       - ./zbx_env/usr/lib/zabbix/externalscripts:/usr/lib/zabbix/externalscripts:ro
  32.     depends_on:
  33.       - zabbix-db
  34.     networks:
  35.       app_net:
  36.         ipv4_address: 172.25.0.10
  37.  
  38.   zabbix-frontend:
  39.     container_name: zabbix-frontend
  40.     hostname: zabbix-frontend
  41.     restart: unless-stopped
  42.     image: zabbix/zabbix-web-apache-pgsql:alpine-4.0-latest
  43.     environment:
  44.       - DB_SERVER_PORT=5432
  45.       - DB_SERVER_HOST=zabbix-db
  46.       - POSTGRES_DB=zabbix
  47.       - POSTGRES_USER=zabbix
  48.       - POSTGRES_PASSWORD=zabbix
  49.       - PHP_TZ=America/Sao_Paulo
  50.       - ZBX_SERVER_NAME=zabbix-server
  51.     ports:
  52.       - '80:80'
  53.       - '443:443'
  54.     volumes:
  55.       - /etc/timezone:/etc/timezone:ro
  56.       - /etc/localtime:/etc/localtime:ro
  57.       - ./zbx_env/etc/ssl/apache2:/etc/ssl/apache2:ro
  58.     depends_on:
  59.       - zabbix-db
  60.       - zabbix-server
  61.     networks:
  62.       app_net:
  63.         ipv4_address: 172.25.0.12
  64.  
  65.   zabbix-db:
  66.     container_name: zabbix-db
  67.     hostname: zabbix-db
  68.     restart: unless-stopped
  69.     image: postgres
  70.     environment:
  71.       - POSTGRES_DB=zabbix
  72.       - POSTGRES_USER=zabbix
  73.       - POSTGRES_PASSWORD=zabbix
  74.     ports:
  75.       - '5432:5432'
  76.     volumes:
  77.       - db_data:/var/lib/postgresql/data
  78.     command: ["postgres", "-c", "max_connections=1000"]
  79.     networks:
  80.       app_net:
  81.         ipv4_address: 172.25.0.11
  82.  
  83.   zabbix-agent:
  84.     container_name: zabbix-agent
  85.     hostname: zabbix-agent
  86.     restart: unless-stopped
  87.     image: zabbix/zabbix-agent:alpine-4.0-latest
  88.     environment:
  89.       - ZBX_HOSTNAME=zabbix-agent
  90.       - ZBX_DEBUGLEVEL=4
  91.       - ZBX_ENABLEREMOTECOMMANDS=1
  92.       - ZBX_SERVER_HOST=zabbix-server
  93.     ports:
  94.       - '10050:10050'
  95.     volumes:
  96.       - /etc/timezone:/etc/timezone:ro
  97.       - /etc/localtime:/etc/localtime:ro
  98.       - ./zbx_env/etc/zabbix/zabbix_agentd.d:/etc/zabbix/zabbix_agentd.d:ro
  99.     depends_on:
  100.       - zabbix-server
  101.     networks:
  102.       app_net:
  103.         ipv4_address: 172.25.0.13
  104.  
  105.   zabbix-grafana:
  106.     container_name: zabbix-grafana
  107.     hostname: zabbix-grafana
  108.     restart: unless-stopped
  109.     image: monitoringartist/grafana-xxl:latest
  110.     volumes:
  111.       - grafana_data:/var/lib/grafana
  112.     ports:
  113.       - 3000:3000
  114.     depends_on:
  115.       - zabbix-frontend
  116.     networks:
  117.       app_net:
  118.         ipv4_address: 172.25.0.14
  119.  
  120.   zabbix-zapix:
  121.     container_name: zabbix-zapix
  122.     hostname: zabbix-zapix
  123.     restart: unless-stopped
  124.     build:
  125.       context: ./zapix
  126.     ports:
  127.       - '8080:80'
  128.     depends_on:
  129.       - zabbix-frontend
  130.     networks:
  131.       app_net:
  132.         ipv4_address: 172.25.0.15
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top