Sign inSign up

kiwiheretic/ossn

By kiwiheretic

•Updated about 10 years ago

Open Social (OSSN)

Image
0

3.7K

kiwiheretic/ossn repository overview

Currently a known installable configuration is:

$ docker run --name some-mysql -e MYSQL_ROOT_PASSWORD= -d mysql:latest $ docker exec -it some-mysql mysql -uroot -p

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database ossn; Query OK, 1 row affected (0.00 sec)

mysql> ^DBye

$ docker run --name ossn -p 127.0.0.1:9005:80 --link mosfet-mysql:mysql -v ~/www/ossn:/var/www/html -d kiwiheretic/ossn

The following "rm" is needed if this is a reinstallation or otherwise weird errors result $ rm -fr ~/www/ossn

$ docker exec ossn bash -c "/root/install_ossn.sh"

Add the following nginx config ###########################################

⁠configuration of the server

server { # the port your site will be served on listen 80; # the domain name it will serve for server_name your.host; # substitute your.host for your domain name charset utf-8;

# max upload size
client_max_body_size 75M;   # adjust to taste


location / {
    proxy_pass http://localhost:9005;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP       $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

} ###########################################

Then point your browser to http://your.host⁠ and install

You will get an installation screen. Remember db name is "ossn", db password is your chosen password, db user is "root" and db hostname = "some-mysql"

Tag summary

Content type

Image

Digest

Size

170.3 MB

Last updated

about 10 years ago

docker pull kiwiheretic/ossn