Last active
February 8, 2026 02:21
-
-
Save abdullahainun/f724fbed71ed7e3685277f2bf097d3ed to your computer and use it in GitHub Desktop.
smekmask tkj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.3' | |
| services: | |
| # --- DNS Server --- | |
| technitium: | |
| image: technitium/dns-server:latest | |
| container_name: technitium-dns | |
| hostname: technitium-dns | |
| ports: | |
| - "53:53/udp" | |
| - "53:53/tcp" | |
| - "5380:5380/tcp" | |
| environment: | |
| - DNS_SERVER_DOMAIN=dns-server | |
| volumes: | |
| - ./technitium/config:/etc/dns/config | |
| restart: always | |
| networks: | |
| - monitoring_net | |
| # --- Web Server --- | |
| apache2: | |
| image: httpd:latest | |
| container_name: apache-server | |
| ports: | |
| - "80:80" # Ubah ke 80 agar bisa diakses langsung lewat domain | |
| volumes: | |
| - ./apache/htdocs:/usr/local/apache2/htdocs | |
| - ./apache/conf/extra/httpd-vhosts.conf:/usr/local/apache2/conf/extra/httpd-vhosts.conf | |
| - ./apache/conf/httpd.conf:/usr/local/apache2/conf/httpd.conf | |
| restart: always | |
| networks: | |
| - monitoring_net | |
| # --- Zabbix Components --- | |
| zabbix-db: | |
| # MariaDB 10.6 is the best choice for 32-bit/ARMv7 stability | |
| image: mariadb:10.6 | |
| container_name: zabbix-db | |
| command: [ | |
| "--character-set-server=utf8mb4", | |
| "--collation-server=utf8mb4_bin", | |
| "--log_bin_trust_function_creators=1" | |
| ] | |
| environment: | |
| - MARIADB_DATABASE=zabbix | |
| - MARIADB_USER=zabbix | |
| - MARIADB_PASSWORD=zabbix_pwd | |
| - MARIADB_ROOT_PASSWORD=root_pwd | |
| volumes: | |
| - ./zabbix/db_data:/var/lib/mysql | |
| restart: always | |
| networks: | |
| - monitoring_net | |
| zabbix-server: | |
| # Switched from -mysql to -mariadb variant | |
| image: zabbix/zabbix-server-mysql:latest | |
| container_name: zabbix-server | |
| ports: | |
| - "10051:10051" | |
| environment: | |
| - DB_SERVER_HOST=zabbix-db | |
| - MYSQL_DATABASE=zabbix | |
| - MYSQL_USER=zabbix | |
| - MYSQL_PASSWORD=zabbix_pwd | |
| depends_on: | |
| - zabbix-db | |
| restart: always | |
| networks: | |
| - monitoring_net | |
| zabbix-web: | |
| # Switched from -mysql to -mariadb variant | |
| image: zabbix/zabbix-web-apache-mysql:latest | |
| container_name: zabbix-web | |
| ports: | |
| - "8081:8080" | |
| environment: | |
| - ZBX_SERVER_HOST=zabbix-server | |
| - DB_SERVER_HOST=zabbix-db | |
| - MYSQL_DATABASE=zabbix | |
| - MYSQL_USER=zabbix | |
| - MYSQL_PASSWORD=zabbix_pwd | |
| depends_on: | |
| - zabbix-server | |
| restart: always | |
| networks: | |
| - monitoring_net | |
| networks: | |
| monitoring_net: | |
| driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment