bit of clean up

This commit is contained in:
Shihaam Abdul Rahman 2023-04-08 14:50:22 +05:00
parent 5c238b2c54
commit 02f88c1c08
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
5 changed files with 10 additions and 21 deletions

View File

@ -0,0 +1,6 @@
version: '3.5'
services:
#########################
zabbix:
build: .
image: git.shihaam.dev/dockerfiles/zabbix-server

View File

@ -7,16 +7,15 @@ Mysql files are mounted at datadir. \
`startservices.sh` contain script to start `zabbix_server`, `nginx` and `php-fpm`
## Getting started
### Building
### Build and push to register
- git clone and cd into git dir
- Build zabbix image
- cd into configdir and configure according to your set up.
```bash
git clone https://git.shihaam.dev/dockerfiles/zabbix-server.git
cd zabbix-server
docker compose -f docker-compose-build.yml build
docker compose -f docker-compose-build.yml up -d
xdg-open http://localhost:8000
docker compose -f ./build/docker-compose.yml build
docker compose -f ./build/docker-compose.yml push
```
### Running production
@ -25,6 +24,7 @@ xdg-open http://localhost:8000
git clone https://git.shihaam.dev/dockerfiles/zabbix-server.git
cd zabbix-server
docker-compose up -d
xdg-open http://localhost:8000
```
- You will have Zabbix frontent avaible on port 8000

View File

@ -1,17 +0,0 @@
version: '3.5'
services:
#########################
zabbix:
build: .
image: git.shihaam.dev/dockerfiles/zabbix-server
volumes:
- $PWD/configdir/etc/zabbix/zabbix_server.conf:/etc/zabbix/zabbix_server.conf
- $PWD/configdir/etc/zabbix/nginx.conf:/etc/zabbix/nginx.conf
- $PWD/configdir/etc/zabbix/web/zabbix.conf.php:/etc/zabbix/web/zabbix.conf.php
- $PWD/configdir/etc/php/7.4/fpm/php-fpm.conf:/etc/php/7.4/fpm/php-fpm.conf
- $PWD/datadir/usr/lib/zabbix/externalscripts:/usr/lib/zabbix/externalscripts
- $PWD/datadir/usr/lib/zabbix/alertscripts:/usr/lib/zabbix/alertscripts
ports:
- 8000:80
- 10051:10051
restart: always