Advertisement
Guest User

Untitled

a guest
Oct 18th, 2023
482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. version: '3.8'
  2. x-common:
  3. database:
  4. &db-environment
  5. # Do not remove the "&db-password" from the end of the line below, it is important
  6. # for Panel functionality.
  7. MYSQL_PASSWORD: &db-password ""
  8. MYSQL_ROOT_PASSWORD: ""
  9. panel:
  10. &panel-environment
  11. # This URL should be the URL that your reverse proxy routes to the panel server
  12. APP_URL: "https://panel.domain.tld"
  13. # A list of valid timezones can be found here: http://php.net/manual/en/timezones.php
  14. APP_TIMEZONE: "UTC"
  15. APP_SERVICE_AUTHOR: "[email protected]"
  16. TRUSTED_PROXIES: "*" # Set this to your proxy IP
  17. # Uncomment the line below and set to a non-empty value if you want to use Let's Encrypt
  18. # to generate an SSL certificate for the Panel.
  19. # LE_EMAIL: ""
  20. mail:
  21. &mail-environment
  22. MAIL_FROM: "[email protected]"
  23. MAIL_DRIVER: "smtp"
  24. MAIL_HOST: "mail"
  25. MAIL_PORT: "1025"
  26. MAIL_USERNAME: ""
  27. MAIL_PASSWORD: ""
  28. MAIL_ENCRYPTION: "true"
  29.  
  30. #
  31. # ------------------------------------------------------------------------------------------
  32. # DANGER ZONE BELOW
  33. #
  34. # The remainder of this file likely does not need to be changed. Please only make modifications
  35. # below if you understand what you are doing.
  36. #
  37. services:
  38. database:
  39. image: mariadb:10.5
  40. restart: always
  41. command: --default-authentication-plugin=mysql_native_password
  42. volumes:
  43. - "/srv/pterodactyl/database:/var/lib/mysql"
  44. environment:
  45. <<: *db-environment
  46. MYSQL_DATABASE: "panel"
  47. MYSQL_USER: "pterodactyl"
  48. cache:
  49. image: redis:alpine
  50. restart: always
  51. panel:
  52. image: ghcr.io/pterodactyl/panel:latest
  53. restart: always
  54. ports:
  55. - "8000:8000"
  56. networks:
  57. - proxy
  58. links:
  59. - database
  60. - cache
  61. volumes:
  62. - "/srv/pterodactyl/var/:/app/var/"
  63. - "/srv/pterodactyl/nginx/:/etc/nginx/http.d/"
  64. - "/srv/pterodactyl/certs/:/etc/letsencrypt/"
  65. - "/srv/pterodactyl/logs/:/app/storage/logs"
  66. environment:
  67. <<: [*panel-environment, *mail-environment]
  68. DB_PASSWORD: *db-password
  69. APP_ENV: "production"
  70. APP_ENVIRONMENT_ONLY: "false"
  71. CACHE_DRIVER: "redis"
  72. SESSION_DRIVER: "redis"
  73. QUEUE_DRIVER: "redis"
  74. REDIS_HOST: "cache"
  75. DB_HOST: "database"
  76. DB_PORT: "3306"
  77. networks:
  78. proxy:
  79. name: proxy
  80. external: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement