You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docker-compose.yml 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. version: '2'
  2. services:
  3. database:
  4. build: ./postgresql
  5. container_name: zabbix-postgresql
  6. # restart: unless-stopped
  7. networks:
  8. zabbix.internal.docker:
  9. aliases:
  10. - postgresql.zabbix.internal.docker
  11. volumes:
  12. - ./data/postgresql/data:/var/lib/postgresql/data
  13. - ./data/postgresql/backup:/var/lib/postgresql/backup
  14. ports:
  15. - "127.0.0.1:34080:5432"
  16. env_file:
  17. - env
  18. zabbix:
  19. build: ./zabbix
  20. container_name: zabbix-zabbix
  21. # restart: unless-stopped
  22. networks:
  23. zabbix.internal.docker:
  24. aliases:
  25. - zabbix.zabbix.internal.docker
  26. ports:
  27. - "127.0.0.1:10051:10051"
  28. env_file:
  29. - env
  30. frontend:
  31. build: ./frontend
  32. container_name: zabbix-frontend
  33. # restart: unless-stopped
  34. networks:
  35. zabbix.internal.docker:
  36. aliases:
  37. - frontend.zabbix.internal.docker
  38. ports:
  39. - "127.0.0.1:34081:80"
  40. env_file:
  41. - env
  42. networks:
  43. zabbix.internal.docker: