added container hostname

This commit is contained in:
Shihaam Abdul Rahman 2023-04-08 15:14:19 +05:00
parent 02f88c1c08
commit 609fb6e2e0
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

View File

@ -3,6 +3,7 @@ services:
#########################
zabbix:
image: git.shihaam.dev/dockerfiles/zabbix-server
hostname: zabbix
volumes:
- $PWD/configdir/etc/zabbix/zabbix_server.conf:/etc/zabbix/zabbix_server.conf
- $PWD/configdir/etc/zabbix/nginx.conf:/etc/zabbix/nginx.conf
@ -17,6 +18,7 @@ services:
#########################
db:
image: mysql:8
hostname: db
environment:
MYSQL_DATABASE: zabbix
MYSQL_USER: zabbix