Commit e9f65ad4 authored by jaster's avatar jaster

Add docker-compose

add `docker-compose.yml`
update dockerfile accordingly
parent cacdeaa9
......@@ -6,11 +6,13 @@ RUN apt update && apt --yes install git virtualenv python-pip wget unzip postgre
RUN git clone https://git.laquadrature.net/memopol/memopol.git && \
cd memopol && \
cp src/memopol/local_settings.py.example src/memopol/local_settings.py && \
sed -i 's/localhost/172.17.0.1/' src/memopol/local_settings.py
sed -i 's/localhost/db/' src/memopol/local_settings.py
WORKDIR memopol
CMD bash -c './bin/dev.sh && \
echo yes | ./bin/quickstart.sh && \
source memopol_env/bin/activate && \
bin/update_representatives'
\ No newline at end of file
export DJANGO_DEBUG=True DJANGO_SETTINGS_MODULE=memopol.settings && \
bin/update_all ; \
echo "Finished!"'
\ No newline at end of file
version: '3'
services:
memopol:
build: .
depends_on:
- db
db:
build: ./database/
ports:
- 5432:5432
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment