You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

56 lines
1.6 KiB

version: "3.7"
services:
app_proxy:
environment:
APP_HOST: zabbix_zabbix-frontend_1
APP_PORT: 8080
zabbix-frontend:
image: zabbix/zabbix-web-nginx-pgsql:7.0.5-alpine@sha256:7ca165b1c7113426e8cb0d7b1b6ae92a8369c47e0cc77b1fa0b612d754312749
hostname: zabbix-frontend
restart: on-failure
environment:
DB_SERVER_HOST: zabbix-database
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
ZBX_SERVER_HOST: zabbix-server
PHP_TZ: UTC
depends_on:
- zabbix-server
- zabbix-database
zabbix-server:
image: zabbix/zabbix-server-pgsql:7.0.5-alpine@sha256:941e82bcda2672e90a2bb754185b3d73d642230cc389adf2d94a14bf7bd33cb6
hostname: zabbix-server
restart: on-failure
init: true
environment:
DB_SERVER_HOST: zabbix-database
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
ports:
- "10050:10050"
depends_on:
- zabbix-database
zabbix-agent:
image: zabbix/zabbix-agent2:7.0.5-alpine@sha256:d15fa41b6a322ae2f63d4d9f7a686365710d6bcbb3b6cb54a68c5e5edba16177
hostname: zabbix-agent
restart: on-failure
init: true
environment:
ZBX_HOSTNAME: zabbix-agent
ZBX_SERVER_HOST: zabbix-server
zabbix-database:
image: postgres:13.16-alpine3.20@sha256:e04acf5744305c9c6a19cedaa23d70a3a74b94cf62084e284793be756087aaa2
hostname: zabbix-database
restart: on-failure
environment:
POSTGRES_PASSWORD: zabbix
POSTGRES_USER: zabbix
POSTGRES_DB: zabbix
volumes:
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data