1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:34 +02:00
dockerfiles/discuz
2016-01-16 23:17:22 +08:00
..
docker-compose.yml update discuz 2016-01-16 22:19:17 +08:00
Dockerfile add discuz 2016-01-16 21:59:28 +08:00
README.md update 2016-01-16 23:17:22 +08:00

discuz

Discuz! is an internet forum software written in PHP and developed by a chinese company.

👎 Discuz! is not a open source software.

  • Initial release: March 2002
  • Stable release: X3.2 (September 23, 2013; 2 years ago)
  • License: proprietary (costs about ¥3000)

👍 Try open source softwares:

docker-compose.yml

discuz:
  image: vimagick/discuz
  ports:
    - "8000:80"
  links:
    - mysql
  restart: always

mysql:
  image: mysql
  environment:
    - MYSQL_ROOT_PASSWORD=root
    - MYSQL_DATABASE=discuz
    - MYSQL_USER=discuz
    - MYSQL_PASSWORD=discuz
  restart: always

/etc/nginx/sites-enabled/discuz

server {
    listen 80;
    server_name discuz.datageek.info;
    location / {
        proxy_pass http://127.0.0.1:8000;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

⚠️ You should pass HTTP headers to fix wrong URL.