These are some guides for various use.
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.

37 lines
894 B

7 months ago
7 months ago
7 months ago
  1. # Todo-List
  2. ## Setup Server
  3. ### Docker
  4. The official container and documentation was made by [prologic](https://hub.docker.com/r/prologic/todo).
  5. #### Volumes
  6. Set the following volumes with the -v tag.
  7. | Volume-Name | Container mount | Description |
  8. | ---------------- | -------------------- | ----------------------- |
  9. | todo | /go/src/todo/todo.db | Database for todo list |
  10. #### Ports
  11. Set the following ports with the -p tag.
  12. | Container Port | Recommended outside port | Protocol | Description |
  13. | -------------- | ------------------------ | -------- | ----------- |
  14. | 8000 | 8000 | TCP | WebUI |
  15. #### Rebuild
  16. ```
  17. #!/bin/sh
  18. docker stop todo
  19. docker rm todo
  20. docker pull prologic/todo
  21. docker run --name todo \
  22. -p 8000:8000 \
  23. --restart unless-stopped \
  24. -v todo:/go/src/todo/todo.db \
  25. -d prologic/todo
  26. ```