docker-compose.yml 3.1 KB

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