Sign inSign up

webgears/zabbix-proxy

By webgears

•Updated over 10 years ago

zabbix-proxy-pgsql +sshd

Image
0

115

webgears/zabbix-proxy repository overview

Supervisor with zabbix-proxy-pgsql, sshd, cron and logrotate. Image based on postgres.

⁠docker-compose.yml:
# after starting container there may be a permission problems in mounted dirs, so chown it to right owner
# also if you use a new databse, you must import schema.sql:
# cp /usr/share/doc/zabbix-proxy-pgsql/schema.sql.gz /tmp; cd /tmp; gzip -d schema.sql.gz; su - postgres
# psql postgres < /tmp/schema.sql

version: '2'
services:
  proxy:
    image: zabbix-proxy
    ipc: host
    restart: always
    hostname: zabbix-proxy
    ports:
      - "10051:10051"
      - "22000:22"
    volumes:
      - ./root/:/root/    #root dir with .ssh/authorized_keys for ssh access
      - ./conf/zabbix_proxy.conf:/etc/zabbix/zabbix_proxy.conf   #zabbix-proxy config
      - ./pgdata/:/var/lib/postgresql/data/pgdata/   #postgresql db volume
      - ./log/:/var/log/zabbix/   #zabbix-proxy logs
    environment:
      - SERVICE_22_NAME=ssh   #tag for registrator/consul
      - SERVICE_TAGS=zabbix-proxy      #tag for registrator/consul
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_USER=postgres
      - POSTGRES_DB=postgres
      - PGDATA=/var/lib/postgresql/data/pgdata

Tag summary

Content type

Image

Digest

Size

130.5 MB

Last updated

over 10 years ago

docker pull webgears/zabbix-proxy:3