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.

66 lines
1.1 KiB

  1. # -- DEV DOCKER-COMPOSE --
  2. # -- DO NOT USE IN PRODUCTION! --
  3. version: "3"
  4. services:
  5. db:
  6. image: postgres:9-alpine
  7. environment:
  8. POSTGRES_DB: wiki
  9. POSTGRES_PASSWORD: wikijsrocks
  10. POSTGRES_USER: wikijs
  11. logging:
  12. driver: "none"
  13. volumes:
  14. - db-data:/var/lib/postgresql/data
  15. networks:
  16. - wikinet
  17. ports:
  18. - "15432:5432"
  19. adminer:
  20. image: adminer:latest
  21. logging:
  22. driver: "none"
  23. networks:
  24. - wikinet
  25. ports:
  26. - "3001:8080"
  27. solr:
  28. image: solr:7-alpine
  29. logging:
  30. driver: "none"
  31. networks:
  32. - wikinet
  33. ports:
  34. - "8983:8983"
  35. volumes:
  36. - solr-data:/opt/solr/server/solr/mycores
  37. entrypoint:
  38. - docker-entrypoint.sh
  39. - solr-precreate
  40. - wiki
  41. wiki:
  42. build:
  43. context: .
  44. dockerfile: dev/docker-postgres/Dockerfile
  45. depends_on:
  46. - db
  47. - solr
  48. networks:
  49. - wikinet
  50. ports:
  51. - "3000:3000"
  52. volumes:
  53. - .:/wiki
  54. - /wiki/node_modules
  55. command: ["sh", "./dev/docker-postgres/init.sh"]
  56. networks:
  57. wikinet:
  58. volumes:
  59. db-data:
  60. solr-data: