Supervisor with zabbix-proxy-pgsql, sshd, cron and logrotate. Image based on postgres.
# 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
Content type
Image
Digest
Size
130.5 MB
Last updated
over 10 years ago
docker pull webgears/zabbix-proxy:3