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.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. version: '2'
  2. services:
  3. postgresql:
  4. build: ./postgresql
  5. container_name: pdns-postgresql
  6. networks:
  7. pdns.internal.docker:
  8. aliases:
  9. - postgresql.pdns.internal.docker
  10. volumes:
  11. - ./data/postgresql/data:/var/lib/postgresql/data
  12. - ./data/postgresql/backup:/var/lib/postgresql/backup
  13. ports:
  14. - "127.0.0.1:34020:5432"
  15. env_file:
  16. - env
  17. poweradmin:
  18. build: ./poweradmin
  19. container_name: pdns-poweradmin
  20. networks:
  21. pdns.internal.docker:
  22. aliases:
  23. - poweradmin.pdns.internal.docker
  24. ports:
  25. - "127.0.0.1:34021:80"
  26. env_file:
  27. - env
  28. pdns:
  29. build: ./pdns
  30. container_name: pdns-pdns
  31. networks:
  32. pdns.internal.docker:
  33. aliases:
  34. - pdns.pdns.internal.docker
  35. ports:
  36. - "0.0.0.0:53:53/udp"
  37. - "0.0.0.0:53:53/tcp"
  38. - "127.0.0.1:34022:80"
  39. env_file:
  40. - env
  41. pdns-recursor:
  42. build: ./pdns-recursor
  43. container_name: pdns-pdns-recursor
  44. networks:
  45. pdns.internal.docker:
  46. aliases:
  47. - pdns-recursor.pdns.internal.docker
  48. env_file:
  49. - env
  50. postgresql-slave1:
  51. build: ./postgresql-slave
  52. container_name: pdns-postgresql-slave1
  53. networks:
  54. pdns.internal.docker:
  55. aliases:
  56. - postgresql-slave1.pdns.internal.docker
  57. volumes:
  58. - ./data/postgresql-slave1/data:/var/lib/postgresql/data
  59. - ./data/postgresql-slave1/backup:/var/lib/postgresql/backup
  60. ports:
  61. - "127.0.0.1:34023:5432"
  62. env_file:
  63. - env
  64. environment:
  65. - POSTGRES_SLAVE_INDEX=1
  66. networks:
  67. pdns.internal.docker: