Commit 2ae49abf by terryshi

update

1 parent c80a683c
......@@ -3,6 +3,7 @@ docker-compose file for discuz
##Usage
```
chmod -R 777 discuz/html
docker-compose up -d
and visit localhost:port to install
```
......@@ -18,16 +19,4 @@ mysql configuration
port mapping
```
##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;
}
```
##make sure database host is mariadb
FROM php:5.6-apache
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
......@@ -866,7 +866,7 @@ cli_server.color = On
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =
date.timezone = PRC
; http://php.net/date.default-latitude
;date.default_latitude = 31.7667
......
......@@ -19,8 +19,8 @@ services:
- MYSQL_PASSWORD=discuz
volumes:
- ./mariadb/database:/var/lib/mysql
ports:
- "3306:3306"
# ports:
# - "3306:3306"
networks:
- docker_discuz
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!