making Dockerfile better and updating README to tell users to expose port 80
This commit is contained in:
parent
b10f9ee6b4
commit
7e703783e3
10
Dockerfile
10
Dockerfile
|
@ -3,15 +3,7 @@ MAINTAINER Larry Price <larry@larry-price.com>
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update && apt-get install git postgresql sendmail sendmail-bin wkhtmltopdf supervisor apache2 libapache2-mod-php5 php5-pgsql -y --force-yes
|
||||||
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 service postgresql start
|
RUN service postgresql start
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ RosarioSIS uses a Postgres database:
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
$ docker create --name rosariodb postgres:9.4
|
$ 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`.
|
Port 80 will be exposed, so you can visit `localhost` to get started. The default username is `admin` and the default password is `admin`.
|
||||||
|
|
Loading…
Reference in New Issue