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.

96 lines
2.2 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. # YOURLS
  2. ## Setup Server
  3. ### Docker
  4. The official container and documentation was made by [yourls](https://hub.docker.com/_/yourls).
  5. #### YOURLS
  6. ##### Environment-variables
  7. Set the following variables with the -e tag.
  8. | Name | Usage | Default |
  9. | ---------------- | -------------------------- | ------- |
  10. | `YOURLS_DB_PASS` | database password | |
  11. | `YOURLS_SITE` | domain/site name of yourls | |
  12. | `YOURLS_USER` | username for yourls admin | |
  13. | `YOURLS_PASS` | password for yourls admin | |
  14. ##### Volumes
  15. Set the following volumes with the -v tag.
  16. | Volume-Name | Container mount | Description |
  17. | ----------- | --------------- | -------------------- |
  18. | `yourls` | `/var/www/html` | yourls specific html |
  19. ##### Ports
  20. Set the following ports with the -p tag.
  21. | Container Port | Recommended outside port | Protocol | Description |
  22. | -------------- | ------------------------ | -------- | ----------------- |
  23. | `80` | `80` | TCP | dns protocol port |
  24. #### MySQL
  25. ##### Environment-variables
  26. Set the following variables with the -e tag.
  27. | Name | Usage | Default |
  28. | --------------------- | ----------------- | ------- |
  29. | `MYSQL_ROOT_PASSWORD` | database password | |
  30. ##### Volumes
  31. Set the following volumes with the -v tag.
  32. | Volume-Name | Container mount | Description |
  33. | ----------- | ----------------- | ------------------- |
  34. | `mysql` | `/var/cache/bind` | database for yourls |
  35. #### Rebuild
  36. ```shell
  37. #!/bin/sh
  38. docker-compose down
  39. docker-compose up -d
  40. ```
  41. #### Docker-Compose.yml
  42. ```yml
  43. version: "3.1"
  44. services:
  45. yourls:
  46. image: yourls
  47. restart: unless-stopped
  48. ports:
  49. - 7006:80
  50. environment:
  51. YOURLS_DB_PASS: mysql_pw
  52. YOURLS_SITE: https://domain.tld
  53. YOURLS_USER: admin_username
  54. YOURLS_PASS: admin_password
  55. YOURLS_PRIVATE: "true"
  56. volumes:
  57. - yourls:/var/www/html
  58. mysql:
  59. image: mysql:5.7
  60. restart: unless-stopped
  61. environment:
  62. MYSQL_ROOT_PASSWORD: mysql_pw
  63. volumes:
  64. - mysql:/var/lib/mysql
  65. volumes:
  66. yourls:
  67. driver: local
  68. mysql:
  69. driver: local
  70. ```