docker-compose.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. version: '3.3'
  2. services:
  3. keystone:
  4. build: .
  5. #user: "node"
  6. #working_dir: /home/node/app
  7. #environment:
  8. #- NODE_ENV=development
  9. #- DISABLE_LOGGING=false
  10. volumes:
  11. - .:/home/node/app
  12. - node_modules:/home/node/app/node_modules
  13. command: ["yarn", "dev"]
  14. links:
  15. - postgres
  16. ports:
  17. - "3230:3000"
  18. expose:
  19. - "3050"
  20. - "3000"
  21. restart: always
  22. #labels:
  23. # - "traefik.backend=node"
  24. # - "traefik.backend.port=3000"
  25. # - "traefik.frontend.rule=Host:kdev.jubilerschubert.pl,www.kdev.jubilerschubert.pl"
  26. # - "traefik.frontend.SSLRedirect=true"
  27. # - "traefik.frontend.SSLHost=kdev.jubilerschubert.pl"
  28. # - "traefik.frontend.SSLForceHost=true"
  29. # - "traefik.docker.networks=web"
  30. # - "traefik.enable=true"
  31. #command: "npm start"
  32. networks:
  33. - default
  34. - web
  35. postgres:
  36. image: postgres
  37. restart: always
  38. environment:
  39. POSTGRES_PASSWORD: utnQ67pt74bVw6aB
  40. POSTGRES_DB: kdev_postgres
  41. POSTGRES_USER: kdev_postgres
  42. volumes:
  43. - /mnt/storage/kdev/db:/var/lib/postgresql/data
  44. ports:
  45. - "5432:5432"
  46. networks:
  47. - default
  48. # phppgadmin:
  49. # restart: always
  50. # image: dockage/phppgadmin:latest
  51. # #ports:
  52. # #- "80:80"
  53. # #- "443:443"
  54. # environment:
  55. # - PHP_PG_ADMIN_SERVER_DESC=PostgreSQL
  56. # - PHP_PG_ADMIN_SERVER_HOST=postgres
  57. # - PHP_PG_ADMIN_SERVER_PORT=5432
  58. # - PHP_PG_ADMIN_SERVER_SSL_MODE=allow
  59. # - PHP_PG_ADMIN_SERVER_DEFAULT_DB=template1
  60. # - PHP_PG_ADMIN_SERVER_PG_DUMP_PATH=/usr/bin/pg_dump
  61. # - PHP_PG_ADMIN_SERVER_PG_DUMPALL_PATH=/usr/bin/pg_dumpall
  62. # - PHP_PG_ADMIN_DEFAULT_LANG=auto
  63. # - PHP_PG_ADMIN_AUTO_COMPLETE=default on
  64. # - PHP_PG_ADMIN_EXTRA_LOGIN_SECURITY=false
  65. # - PHP_PG_ADMIN_OWNED_ONLY=false
  66. # - PHP_PG_ADMIN_SHOW_COMMENTS=true
  67. # - PHP_PG_ADMIN_SHOW_ADVANCED=false
  68. # - PHP_PG_ADMIN_SHOW_SYSTEM=false
  69. # - PHP_PG_ADMIN_MIN_PASSWORD_LENGTH=1
  70. # - PHP_PG_ADMIN_LEFT_WIDTH=200
  71. # - PHP_PG_ADMIN_THEME=default
  72. # - PHP_PG_ADMIN_SHOW_OIDS=false
  73. # - PHP_PG_ADMIN_MAX_ROWS=30
  74. # - PHP_PG_ADMIN_MAX_CHARS=50
  75. # - PHP_PG_ADMIN_USE_XHTML_STRICT=false
  76. # - PHP_PG_ADMIN_HELP_BASE=http://www.postgresql.org/docs/%s/interactive/
  77. # - PHP_PG_ADMIN_AJAX_REFRESH=3
  78. # labels:
  79. # - "traefik.backend=phppgadmin"
  80. # - "traefik.backend.port=80"
  81. # - "traefik.frontend.rule=Host:pkdev.jubilerschubert.pl,www.pkdev.jubilerschubert.pl"
  82. # - "traefik.frontend.SSLRedirect=true"
  83. # - "traefik.frontend.SSLHost=pkdev.jubilerschubert.pl"
  84. # - "traefik.frontend.SSLForceHost=true"
  85. # - "traefik.frontend.redirect.permanent=true"
  86. # - "traefik.docker.networks=web"
  87. # - "traefik.enable=true"
  88. # networks:
  89. # - default
  90. # - web
  91. networks:
  92. default:
  93. external: false
  94. web:
  95. external: true
  96. volumes:
  97. node_modules: