Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
hfpp2012
/
docker-for-discuz
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2ae49abf
authored
Mar 02, 2017
by
terryshi
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update
1 parent
c80a683c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
16 deletions
README.md
discuz/Dockerfile
discuz/config/php.ini
docker-compose.yml
README.md
View file @
2ae49ab
...
@@ -3,6 +3,7 @@ docker-compose file for discuz
...
@@ -3,6 +3,7 @@ docker-compose file for discuz
##Usage
##Usage
```
```
chmod -R 777 discuz/html
docker-compose up -d
docker-compose up -d
and visit localhost:port to install
and visit localhost:port to install
```
```
...
@@ -19,15 +20,3 @@ port mapping
...
@@ -19,15 +20,3 @@ port mapping
```
```
##make sure database host is mariadb
##make sure database host is mariadb
##use nginx as proxy
```
upstream your_domain_name {
server discuz_server_ip:port weight=10;
}
server
{
listen 80;
server_name your_domain_name;
}
```
discuz/Dockerfile
View file @
2ae49ab
FROM
php:5.6-apache
FROM
php:5.6-apache
COPY config/php.ini /usr/local/etc/php/
COPY config/php.ini /usr/local/etc/php/
RUN
apt-get update
&&
apt-get install -y libpng12-dev
&&
docker-php-ext-install -j
$(
nproc
)
gd mysqli
RUN
apt-get update
&&
apt-get install -y libpng12-dev
&&
docker-php-ext-install -j
$(
nproc
)
gd mysqli
mysql
discuz/config/php.ini
View file @
2ae49ab
...
@@ -866,7 +866,7 @@ cli_server.color = On
...
@@ -866,7 +866,7 @@ cli_server.color = On
[Date]
[Date]
; Defines the default timezone used by the date functions
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
; http://php.net/date.timezone
;date.timezone =
date.timezone
=
PRC
; http://php.net/date.default-latitude
; http://php.net/date.default-latitude
;date.default_latitude = 31.7667
;date.default_latitude = 31.7667
...
...
docker-compose.yml
View file @
2ae49ab
...
@@ -19,8 +19,8 @@ services:
...
@@ -19,8 +19,8 @@ services:
-
MYSQL_PASSWORD=discuz
-
MYSQL_PASSWORD=discuz
volumes
:
volumes
:
-
./mariadb/database:/var/lib/mysql
-
./mariadb/database:/var/lib/mysql
ports
:
#
ports:
-
"
3306:3306"
#
- "3306:3306"
networks
:
networks
:
-
docker_discuz
-
docker_discuz
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment