Guest User

Untitled

a guest
May 24th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. ...
  2. sendfile off;
  3.  
  4. # SSL Settings
  5. ssl on;
  6. ssl_certificate /etc/letsencrypt/live/website.com/fullchain.pem;
  7. ssl_certificate_key /etc/letsencrypt/live/website.com/privkey.pem;
  8. include /etc/nginx/snippets/ssl-params.conf;
  9.  
  10. root /var/www/website.com/public;
  11. index index.html index.htm;
  12.  
  13. location / {
  14. proxy_set_header Host $host;
  15. proxy_set_header X-Real-IP $remote_addr;
  16. proxy_set_header X-Forwarded-Proto $scheme;
  17. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  18. proxy_set_header X-Forwarded-Host $server_name;
  19.  
  20. proxy_pass http://127.0.0.1:20000;
  21.  
  22. proxy_redirect off;
  23.  
  24. }
  25.  
  26. version: '3.3'
  27.  
  28. services:
  29. db:
  30. image: mysql:5.7
  31. volumes:
  32. - db_data:/var/lib/mysql
  33. restart: always
  34. environment:
  35. MYSQL_ROOT_PASSWORD: x
  36. MYSQL_DATABASE: wordpress
  37. MYSQL_USER: wordpress
  38. MYSQL_PASSWORD: x
  39.  
  40. wordpress:
  41. depends_on:
  42. - db
  43. image: wordpress:latest
  44. ports:
  45. - "20000:80"
  46. restart: always
  47. environment:
  48. WORDPRESS_DB_HOST: db:3306
  49. WORDPRESS_DB_USER: wordpress
  50. WORDPRESS_DB_PASSWORD: x
  51. volumes:
  52. db_data:
Add Comment
Please, Sign In to add comment