docker-rosariosis/README.md

33 lines
1.3 KiB
Markdown
Raw Normal View History

docker-rosariosis
=================
2016-06-29 18:18:01 +00:00
A Dockerfile (see [Docker website](https://www.docker.com/) from more info) that installs the latest [RosarioSIS](https://www.rosariosis.org/). This file pulls from the default branch, but can be easily modified to pull from any other available branch or tagged release.
## Installation
```
2016-06-29 18:18:01 +00:00
git clone https://github.com/francoisjacquet/docker-rosariosis.git
cd docker-rosariosis
docker build -t rosariosis .
```
## Usage
2016-06-29 18:18:01 +00:00
RosarioSIS uses a PostgreSQL database:
``` bash
$ docker run --name rosariodb -d postgres:9.5 --restart=always
2015-05-19 02:26:44 +00:00
$ docker run -e "ROSARIOSIS_ADMIN_EMAIL=admin@example.com" -h `hostname -f` -d -p 80:80 --name rosariosis --link rosariodb:rosariodb rosariosis --restart=always
```
Port 80 will be exposed, so you can visit `localhost` to get started. The default username is `admin` and the default password is `admin`.
2015-05-18 04:51:46 +00:00
## SMTP
RosarioSIS will attempt to send mail via the host's port 25. In order for this to work you must set the hostname of the rosariosis container to that of `host` (or some other hostname that your can appear on a legal `FROM` line) and configure the host to accept SMTP from the container. For postfix this means adding the container IP addresses to `/etc/postfix/main.cf` as in:
2015-05-18 04:51:46 +00:00
```
2015-05-18 04:51:46 +00:00
mynetworks = 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
```
2015-05-18 04:51:46 +00:00