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 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. version: '2'
  2. services:
  3. postgresql:
  4. build: ./postgresql
  5. container_name: pdns-postgresql
  6. # restart: unless-stopped
  7. networks:
  8. pdns.internal.docker:
  9. aliases:
  10. - postgresql.pdns.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:34020:5432"
  16. env_file:
  17. - env
  18. poweradmin:
  19. build: ./poweradmin
  20. container_name: pdns-poweradmin
  21. # restart: unless-stopped
  22. networks:
  23. pdns.internal.docker:
  24. aliases:
  25. - poweradmin.pdns.internal.docker
  26. ports:
  27. - "127.0.0.1:34021:80"
  28. env_file:
  29. - env
  30. pdns:
  31. build: ./pdns
  32. container_name: pdns-pdns
  33. # restart: unless-stopped
  34. networks:
  35. pdns.internal.docker:
  36. aliases:
  37. - pdns.pdns.internal.docker
  38. ports:
  39. - "0.0.0.0:53:53/udp"
  40. - "0.0.0.0:53:53/tcp"
  41. - "127.0.0.1:34022:80"
  42. env_file:
  43. - env
  44. pdns-recursor:
  45. build: ./pdns-recursor
  46. container_name: pdns-pdns-recursor
  47. # restart: unless-stopped
  48. networks:
  49. pdns.internal.docker:
  50. aliases:
  51. - pdns-recursor.pdns.internal.docker
  52. env_file:
  53. - env
  54. postgresql-slave1:
  55. build: ./postgresql
  56. container_name: pdns-postgresql-slave1
  57. # restart: unless-stopped
  58. networks:
  59. pdns.internal.docker:
  60. aliases:
  61. - postgresql-slave1.pdns.internal.docker
  62. volumes:
  63. - ./data/postgresql-slave1/data:/var/lib/postgresql/data
  64. - ./data/postgresql-slave1/backup:/var/lib/postgresql/backup
  65. ports:
  66. - "127.0.0.1:34023:5432"
  67. env_file:
  68. - env
  69. environment:
  70. - POSTGRES_INDEX=SLAVE1
  71. postgresql-slave2:
  72. build: ./postgresql
  73. container_name: pdns-postgresql-slave2
  74. # restart: unless-stopped
  75. networks:
  76. pdns.internal.docker:
  77. aliases:
  78. - postgresql-slave2.pdns.internal.docker
  79. volumes:
  80. - ./data/postgresql-slave2/data:/var/lib/postgresql/data
  81. - ./data/postgresql-slave2/backup:/var/lib/postgresql/backup
  82. ports:
  83. - "127.0.0.1:34024:5432"
  84. env_file:
  85. - env
  86. environment:
  87. - POSTGRES_INDEX=SLAVE2
  88. networks:
  89. pdns.internal.docker: