An IndieWeb engine for a self-hostable website. https://koype.net/
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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ---
  2. version: "3.4"
  3. services:
  4. webdriver:
  5. image: selenium/standalone-chrome:3.141.59-mercury
  6. restart: always
  7. volumes:
  8. - ./:/opt/koype/:z
  9. - /dev/shm:/dev/shm
  10. networks:
  11. - network
  12. objectstorage:
  13. image: "minio/minio:latest"
  14. command: server /data
  15. restart: always
  16. volumes:
  17. - "./tmp/docker/minio/data:/data:rw"
  18. - "./tmp/docker/minio/config:/root/.minio:rw"
  19. environment:
  20. MINIO_ACCESS_KEY: ${OBJECT_STORAGE_ACCESS_KEY}
  21. MINIO_SECRET_KEY: ${OBJECT_STORAGE_SECRET_KEY}
  22. MINIO_REGION: "local"
  23. networks:
  24. - network
  25. mc:
  26. image: "minio/mc"
  27. command: ls koype/koype-dev
  28. environment:
  29. MC_HOST_koype: "http://${OBJECT_STORAGE_ACCESS_KEY}:${OBJECT_STORAGE_SECRET_KEY}@objectstorage:9000"
  30. volumes:
  31. - "./tmp/docker/minio/client:/root/.mc"
  32. links:
  33. - objectstorage
  34. networks:
  35. - network
  36. site:
  37. build:
  38. context: "."
  39. dockerfile: Dockerfile.dev
  40. args:
  41. MIX_ENV: dev
  42. env_file: ".env"
  43. environment:
  44. CANONICAL_URL: ${CANONICAL_URL}
  45. ENV: ${ENV}
  46. GUARDIAN_SECRET_KEY: ${GUARDIAN_SECRET_KEY}
  47. LOGGER_LEVEL: ${LOGGER_LEVEL}
  48. MIX_ENV: ${MIX_ENV}
  49. OBJECT_STORAGE_ACCESS_KEY: ${OBJECT_STORAGE_ACCESS_KEY}
  50. OBJECT_STORAGE_BUCKET: ${OBJECT_STORAGE_BUCKET}
  51. OBJECT_STORAGE_HOST: ${OBJECT_STORAGE_HOST}
  52. OBJECT_STORAGE_PORT: ${OBJECT_STORAGE_PORT}
  53. OBJECT_STORAGE_SCHEME: ${OBJECT_STORAGE_SCHEME}
  54. OBJECT_STORAGE_SECRET_KEY: ${OBJECT_STORAGE_SECRET_KEY}
  55. PORT: ${PORT}
  56. HMR_PORT: ${HMR_PORT}
  57. SECRET_KEY_BASE: ${SECRET_KEY_BASE}
  58. SESSION_SIGNING_SALT: ${SESSION_SIGNING_SALT}
  59. TEST_HOST: ${TEST_HOST}
  60. TEST_PORT: ${TEST_PORT}
  61. ports:
  62. - "${PORT}:${PORT}"
  63. - "${HMR_PORT}:${HMR_PORT}"
  64. links:
  65. - objectstorage
  66. volumes:
  67. - ./:/opt/koype/:z
  68. - ./priv/repo/db/:/opt/koype/priv/repo/db/:z
  69. healthcheck:
  70. test: ["CMD", "/opt/koype/docker/scripts/healthcheck.sh"]
  71. interval: 60s
  72. timeout: 5s
  73. retries: 5
  74. networks:
  75. - network
  76. networks:
  77. network: