Commit 2ae49abf by terryshi

update

1 parent c80a683c
...@@ -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
``` ```
...@@ -18,16 +19,4 @@ mysql configuration ...@@ -18,16 +19,4 @@ mysql configuration
port mapping 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;
}
```
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
...@@ -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
......
...@@ -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
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!