bit of clean up
This commit is contained in:
parent
5c238b2c54
commit
02f88c1c08
6
.build/docker-compose.yml
Normal file
6
.build/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
version: '3.5'
|
||||||
|
services:
|
||||||
|
#########################
|
||||||
|
zabbix:
|
||||||
|
build: .
|
||||||
|
image: git.shihaam.dev/dockerfiles/zabbix-server
|
@ -7,16 +7,15 @@ Mysql files are mounted at datadir. \
|
|||||||
`startservices.sh` contain script to start `zabbix_server`, `nginx` and `php-fpm`
|
`startservices.sh` contain script to start `zabbix_server`, `nginx` and `php-fpm`
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
### Building
|
### Build and push to register
|
||||||
- git clone and cd into git dir
|
- git clone and cd into git dir
|
||||||
- Build zabbix image
|
- Build zabbix image
|
||||||
- cd into configdir and configure according to your set up.
|
- cd into configdir and configure according to your set up.
|
||||||
```bash
|
```bash
|
||||||
git clone https://git.shihaam.dev/dockerfiles/zabbix-server.git
|
git clone https://git.shihaam.dev/dockerfiles/zabbix-server.git
|
||||||
cd zabbix-server
|
cd zabbix-server
|
||||||
docker compose -f docker-compose-build.yml build
|
docker compose -f ./build/docker-compose.yml build
|
||||||
docker compose -f docker-compose-build.yml up -d
|
docker compose -f ./build/docker-compose.yml push
|
||||||
xdg-open http://localhost:8000
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Running production
|
### Running production
|
||||||
@ -25,6 +24,7 @@ xdg-open http://localhost:8000
|
|||||||
git clone https://git.shihaam.dev/dockerfiles/zabbix-server.git
|
git clone https://git.shihaam.dev/dockerfiles/zabbix-server.git
|
||||||
cd zabbix-server
|
cd zabbix-server
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
xdg-open http://localhost:8000
|
||||||
```
|
```
|
||||||
- You will have Zabbix frontent avaible on port 8000
|
- You will have Zabbix frontent avaible on port 8000
|
||||||
|
|
||||||
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user