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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user