You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 2.1 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # OpenKF Deploy
  2. Using the OpenKF deploy tools, you can deploy OpenKF to docker clusters.
  3. ## Build images
  4. ### Build images for web
  5. Build and run web image
  6. ```bash
  7. # pwd = /deploy/docker
  8. docker build -f Dockerfile.web -t openkf-web ../../.
  9. # optional: run web image
  10. docker run -d -p 8080:80 openkf-web
  11. ```
  12. ### Build images for server
  13. ```bash
  14. # build openkf-server
  15. docker build -f docker/Dockerfile.server -t openkf-server:latest ../.
  16. ```
  17. You can check the images by running the following commands:
  18. ```bash
  19. $ docker images
  20. REPOSITORY TAG IMAGE ID CREATED SIZE
  21. openkf-server latest f1676becc5ce About a minute ago 60.5MB
  22. ...
  23. ```
  24. ## Run images
  25. ### Use docker-compose to run backend without OpenIMServer
  26. ```bash
  27. docker-compose -f docker-compose/docker-compose-dev.yaml up -d
  28. ```
  29. You can check the containers by running the following commands:
  30. ```bash
  31. $ docker-compose -f docker-compose/docker-compose-dev.yaml ps
  32. NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
  33. openkf-minio minio/minio "/usr/bin/docker-ent…" minio 8 minutes ago Up 27 seconds 0.0.0.0:9100->9000/tcp, :::9100->9000/tcp, 0.0.0.0:9190->9090/tcp, :::9190->9090/tcp
  34. openkf-mysql mysql:latest "docker-entrypoint.s…" mysql 47 minutes ago Restarting (1) 7 seconds ago
  35. openkf-redis redis:latest "docker-entrypoint.s…" redis 47 minutes ago Up 29 seconds 0.0.0.0:6479->6379/tcp, :::6479->6379/tcp
  36. openkf-server openkf-server:latest "./docker_init_serve…" server 30 seconds ago Up 5 seconds 0.0.0.0:10010->10010/tcp, :::10010->10010/tcp 3.2s
  37. ```
  38. Check the logs of the server container:
  39. ```bash
  40. $ docker-compose -f docker-compose/docker-compose-dev.yaml logs
  41. ```