Last active
June 5, 2018 01:52
-
-
Save okisanjp/5539182d50b502674823cba87d6377fc to your computer and use it in GitHub Desktop.
zabbix3.2 on docker memo : https://gist.github.com/take4/3ee5413649f193938c738d02cc6448eb#file-zabbix-docker-compose-yaml こちら参考にデータ永続化部分の汎用性を高めるためにボリュームを追加
This file contains 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: '2' | |
services: | |
zabbix_db: | |
container_name: zabbix_db | |
image: mysql:5.7 | |
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci | |
volumes: | |
- zabbix_storage_db:/var/lib/mysql | |
- /etc/localtime:/etc/localtime:ro | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: docker | |
MYSQL_DATABASE: zabbix | |
MYSQL_USER: zabbix | |
MYSQL_PASSWORD: zabbix | |
zabbix_server: | |
container_name: zabbix_server | |
image: zabbix/zabbix-server-mysql:alpine-3.2-latest | |
volumes: | |
- zabbix_storage_server:/var/lib/zabbix | |
- /etc/localtime:/etc/localtime:ro | |
environment: | |
DB_SERVER_HOST: zabbix_db | |
MYSQL_USER: zabbix | |
MYSQL_PASSWORD: zabbix | |
ports: | |
- "10051:10051" | |
depends_on: | |
- zabbix_db | |
zabbix_web: | |
container_name: zabbix_web | |
image: zabbix/zabbix-web-nginx-mysql:alpine-3.2-latest | |
volumes: | |
- /usr/share/zoneinfo/Asia/Tokyo:/etc/localtime:ro | |
- /usr/share/fonts/ipa-pgothic/ipagp.ttf:/usr/share/zabbix/fonts/graphfont.ttf:ro | |
environment: | |
DB_SERVER_HOST: zabbix_db | |
MYSQL_USER: zabbix | |
MYSQL_PASSWORD: zabbix | |
ZBX_SERVER_HOST: zabbix_server | |
PHP_TZ: Asia/Tokyo | |
ports: | |
- "8000:80" | |
depends_on: | |
- zabbix_db | |
- zabbix_server | |
zabbix_agent: | |
container_name: zabbix_agent | |
image: zabbix/zabbix-agent:alpine-latest | |
volumes: | |
- /etc/localtime:/etc/localtime:ro | |
environment: | |
ZBX_SERVER_HOST: zabbix_server | |
ports: | |
- "10050:10050" | |
depends_on: | |
- zabbix_server | |
privileged: true | |
volumes: | |
zabbix_storage_db: | |
driver: local | |
zabbix_storage_server: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment