2016-01-16 15:57:09 +02:00
|
|
|
discuz
|
|
|
|
======
|
|
|
|
|
|
|
|
[Discuz!][1] is an internet forum software written in PHP and developed by a chinese company.
|
|
|
|
|
2016-01-16 16:19:17 +02:00
|
|
|
:-1: Discuz! is not a open source software.
|
2016-01-16 15:57:09 +02:00
|
|
|
|
2016-01-16 16:19:17 +02:00
|
|
|
- Initial release: March 2002
|
|
|
|
- Stable release: X3.2 (September 23, 2013; 2 years ago)
|
|
|
|
- License: proprietary (costs about ¥3000)
|
|
|
|
|
|
|
|
:+1: Try open source softwares:
|
|
|
|
|
|
|
|
- [discourse](https://hub.docker.com/r/discourse/discourse/)
|
|
|
|
- [nodebb](https://hub.docker.com/r/vimagick/phpbb/)
|
|
|
|
- [phpbb](https://hub.docker.com/r/vimagick/phpbb/)
|
|
|
|
|
|
|
|
## 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
|
|
|
|
```
|
2016-01-16 15:57:09 +02:00
|
|
|
|
2016-01-16 16:53:20 +02:00
|
|
|
## /etc/nginx/sites-enabled/discuz
|
|
|
|
|
|
|
|
```
|
|
|
|
server {
|
|
|
|
listen 80;
|
2016-05-01 03:06:20 +02:00
|
|
|
server_name discuz.easypi.info;
|
2016-01-16 16:53:20 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
> :warning: You should pass HTTP headers to fix wrong URL.
|
|
|
|
|
2016-01-16 15:57:09 +02:00
|
|
|
[1]: http://www.discuz.net
|