making Dockerfile better and updating README to tell users to expose port 80

This commit is contained in:
Larry Price 2015-02-23 14:19:30 -05:00
parent b10f9ee6b4
commit 7e703783e3
2 changed files with 2 additions and 10 deletions

View File

@ -3,15 +3,7 @@ MAINTAINER Larry Price <larry@larry-price.com>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install git -y --force-yes
RUN apt-get install postgresql -y --force-yes
RUN apt-get install sendmail sendmail-bin -y --force-yes
RUN apt-get install wkhtmltopdf -y --force-yes
RUN apt-get install supervisor -y --force-yes
RUN apt-get install apache2 -y --force-yes
RUN apt-get install libapache2-mod-php5 -y --force-yes
RUN apt-get install php5-pgsql -y --force-yes
RUN apt-get update && apt-get install git postgresql sendmail sendmail-bin wkhtmltopdf supervisor apache2 libapache2-mod-php5 php5-pgsql -y --force-yes
RUN service postgresql start

View File

@ -17,7 +17,7 @@ RosarioSIS uses a Postgres database:
``` bash
$ docker create --name rosariodb postgres:9.4
$ docker run -d --link rosariodb:rosariodb rosariosis
$ docker run -d -p 80:80 --link rosariodb:rosariodb rosariosis
```
Port 80 will be exposed, so you can visit `localhost` to get started. The default username is `admin` and the default password is `admin`.