Add a postgres database container.

- Set environemnt variables for Postgresql database in the compose file
- Set environment variables for uwsgi in the compose file
- Check if the postgresql container is up and accepting connections before
  running any actual services.
This commit is contained in:
Abhilash Raj
2017-03-29 21:58:40 -07:00
parent c110bb1d01
commit 131d1c0b8a
5 changed files with 92 additions and 16 deletions

View File

@@ -4,7 +4,9 @@ MAINTAINER Abhilash Raj
# Install the latest master branch of the mailman directly
# from the Gitlab.
RUN pip install git+https://gitlab.com/mailman/mailman.git
RUN apt-get update && apt-get install -y postgresql-client \
&& pip install git+https://gitlab.com/mailman/mailman.git \
psycopg2
ADD assets/run.sh /opt/run.sh
@@ -17,4 +19,4 @@ WORKDIR /opt/mailman
EXPOSE 8001
CMD /opt/run.sh
CMD ["/opt/run.sh"]