Open Anzic23 opened 4 years ago
If you aren't requiring Zabbix Monitoring services just turn it off ENABLE_ZABBIX=FALSE
as per https://github.com/tiredofit/docker-debian/blob/buster/README.md
I edited the file, but it didn't help, maybe I didn't edit it correctly?
version: '2'
services:
freepbx-app:
container_name: freepbx-app
image: tiredofit/freepbx
ports:
#### If you aren't using a reverse proxy
- 8014:80
#### If you want SSL Support and not using a reverse proxy
#- 443:443
- 5060:5060/udp
- 5160:5160/udp
- 18000-18100:18000-18100/udp
#### Flash Operator Panel
- 4445:4445
volumes:
- ./certs:/certs
- ./data:/data
- ./logs:/var/log
- ./data/www:/var/www/html
### Only Enable this option below if you set DB_EMBEDDED=TRUE
#- ./db:/var/lib/mysql
### You can drop custom files overtop of the image if you have made modifications to modules/css/whatever - Use with care
#- ./assets/custom:/assets/custom
environment:
- VIRTUAL_HOST=freepbx.huako.ru
- VIRTUAL_NETWORK=zabbix-proxy
### If you want to connect to the SSL Enabled Container
#- VIRTUAL_PORT=443
#- VIRTUAL_PROTO=https
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=freepbx.huako.ru
- LETSENCRYPT_EMAIL=anz@inbox.ru
- ENABLE_ZABBIX=FALSE
- RTP_START=18000
- RTP_FINISH=18100
## Use for External MySQL Server
- DB_EMBEDDED=FALSE
### These are only necessary if DB_EMBEDDED=FALSE
- DB_HOST=freepbx-db
- DB_PORT=3306
- DB_NAME=asterisk
- DB_USER=asterisk
- DB_PASS=asteriskpass
### If you are using TLS Support for Apache to listen on 443 in the container drop them in /certs and set these:
#- TLS_CERT=cert.pem
#- TLS_KEY=key.pem
restart: always
networks:
- zabbix-proxy
### These final lines are for Fail2ban. If you don't want, comment and also add ENABLE_FAIL2BAN=FALSE to your environment
cap_add:
- NET_ADMIN
privileged: true
freepbx-db:
container_name: freepbx-db
image: tiredofit/mariadb
restart: always
volumes:
- ./db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=asterisk
- MYSQL_USER=asterisk
- MYSQL_PASSWORD=asteriskpass
networks:
- zabbix-proxy
freepbx-db-backup:
container_name: freepbx-db-backup
image: tiredofit/db-backup
links:
- freepbx-db
volumes:
- ./dbbackup:/backup
environment:
#- ZABBIX_HOSTNAME=freepbx-db-backup
- DB_HOST=freepbx-db
- DB_TYPE=mariadb
- DB_NAME=asterisk
- DB_USER=asterisk
- DB_PASS=asteriskpass
- DB_DUMP_FREQ=1440
- DB_DUMP_BEGIN=0000
- DB_CLEANUP_TIME=8640
- COMPRESSION=BZ
- MD5=TRUE
networks:
- zabbix-proxy
restart: always
networks:
zabbix-proxy:
external:
name: zabbix-proxy
You are delcaring a network for zabbix-proxy twice. Try this instead for all networks per service:
networks:
- proxy-tier
And at the bottom of the file:
networks:
proxy-tier:
external:
name: nginx-proxy
then make sure you have a docker network created for nginx-proxy
. docker network create nginx-proxy
I'm not sure what exactly helped, but the docker-compose.yml and deleting all data in directories helped launch the service. Also, the address should have been http:\ip:8014\admin next time I'll try to use your network hint.
version: '2'
services:
freepbx-app:
container_name: freepbx-app
image: tiredofit/freepbx
ports:
#### If you aren't using a reverse proxy
- 8014:80
#### If you want SSL Support and not using a reverse proxy
#- 443:443
- 5060:5060/udp
- 5160:5160/udp
- 18000-18100:18000-18100/udp
#### Flash Operator Panel
- 4445:4445
volumes:
- ./certs:/certs
- ./data:/data
- ./logs:/var/log
- ./data/www:/var/www/html
### Only Enable this option below if you set DB_EMBEDDED=TRUE
#- ./db:/var/lib/mysql
### You can drop custom files overtop of the image if you have made modifications to modules/css/whatever - Use with care
#- ./assets/custom:/assets/custom
environment:
- VIRTUAL_HOST=freepbx.huako.ru
- VIRTUAL_NETWORK=zabbix-proxy
### If you want to connect to the SSL Enabled Container
#- VIRTUAL_PORT=443
#- VIRTUAL_PROTO=https
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=freepbx.huako.ru
- LETSENCRYPT_EMAIL=anz@inbox.ru
- ENABLE_ZABBIX=FALSE
- RTP_START=18000
- RTP_FINISH=18100
## Use for External MySQL Server
- DB_EMBEDDED=FALSE
### These are only necessary if DB_EMBEDDED=FALSE
- DB_HOST=freepbx-db
- DB_PORT=3306
- DB_NAME=asterisk
- DB_USER=asterisk
- DB_PASS=asteriskpass
### If you are using TLS Support for Apache to listen on 443 in the container drop them in /certs and set these:
#- TLS_CERT=cert.pem
#- TLS_KEY=key.pem
restart: always
networks:
- zabbix-proxy
### These final lines are for Fail2ban. If you don't want, comment and also add ENABLE_FAIL2BAN=FALSE to your environment
cap_add:
- NET_ADMIN
privileged: true
freepbx-db:
container_name: freepbx-db
image: tiredofit/mariadb
restart: always
volumes:
- ./db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=asterisk
- MYSQL_USER=asterisk
- MYSQL_PASSWORD=asteriskpass
- ENABLE_ZABBIX=FALSE
networks:
- zabbix-proxy
freepbx-db-backup:
container_name: freepbx-db-backup
image: tiredofit/db-backup
links:
- freepbx-db
volumes:
- ./dbbackup:/backup
environment:
#- ZABBIX_HOSTNAME=freepbx-db-backup
- ENABLE_ZABBIX=FALSE
- DB_HOST=freepbx-db
- DB_TYPE=mariadb
- DB_NAME=asterisk
- DB_USER=asterisk
- DB_PASS=asteriskpass
- DB_DUMP_FREQ=1440
- DB_DUMP_BEGIN=0000
- DB_CLEANUP_TIME=8640
- COMPRESSION=BZ
- MD5=TRUE
networks:
- zabbix-proxy
restart: always
networks:
zabbix-proxy:
external:
name: zabbix-proxy
now i can't install module. I do not have any modules, when I try to put this window appears, what should I do with it?
Best to start entirely fresh, delete any of your volumes including your database. Sounds like the install didn't complete.
Docker version 18.09.8, build 2c0a67b docker-compose version 1.24.0, build 0aa59064 system - Synology DS3615xs (Linux NAS 3.10.105 #23739 SMP Sat May 19 03:07:32 CST 2018 x86_64 GNU/Linux synology_bromolow_3615xs) docker tag version - 4.0.2 2020-03-25 docker-compose.yml
logs: freepbx-app:
freepbx-db:
zabbix_agentd.log:
zabbix_agentd.conf: