Commit b9133cae authored by Jamesie Pic's avatar Jamesie Pic

woot

parent 67171917
FROM python:2.7-alpine
ENV PYTHONUNBUFFERED 1
RUN apk update && apk add py-psycopg2 unzip
RUN apk update && apk add py-psycopg2 unzip uwsgi-python
#### APP ######
ADD . /code
WORKDIR /code
ADD . /memopol
WORKDIR /memopol
RUN pip install --upgrade pip
RUN pip install -Ue .
......
version: '2'
services:
web:
build: .
command: /code/src/memopol/manage.py runserver 10.100.230.3:8000
volumes:
- .:/code
environment:
DB_NAME: 'memopol'
DB_USER: 'memopol'
DB_PASSWORD: 'memopol'
DB_HOST: 'db'
DJANGO_DEBUG: 1
DJANGO_ALLOWED_HOSTS: '*'
depends_on:
- db
ports:
- 8000:8000
networks:
memonet:
ipv4_address: 10.100.230.3
db:
image: postgres
environment:
POSTGRES_DB: 'memopol'
POSTGRES_USER: 'memopol'
POSTGRES_PASSWORD: 'memopol'
networks:
memonet:
ipv4_address: 10.100.230.2
volumes:
- pg:/var/lib/postgresql/data
web:
build: .
command: /code/src/memopol/manage.py runserver 10.100.230.3:8000
volumes:
- ..:/code
environment:
DB_NAME: 'memopol'
DB_USER: 'memopol'
DB_PASSWORD: 'memopol'
DB_HOST: 'db'
DJANGO_DEBUG: 1
DJANGO_ALLOWED_HOSTS: '*'
depends_on:
- db
ports:
- 8000:8000
networks:
memonet:
ipv4_address: 10.100.230.3
db:
image: postgres
environment:
POSTGRES_DB: 'memopol'
POSTGRES_USER: 'memopol'
POSTGRES_PASSWORD: 'memopol'
networks:
memonet:
ipv4_address: 10.100.230.2
volumes:
- pg:/var/lib/postgresql/data
networks:
memonet:
driver: bridge
ipam:
config:
- subnet: 10.100.230.0/24
memonet:
driver: bridge
ipam:
config:
- subnet: 10.100.230.0/24
volumes:
pg:
driver: local
pg:
driver: local
......@@ -69,6 +69,8 @@ INSTALLED_APPS = (
'representatives_votes',
'representatives_recommendations',
'representatives_positions',
'installer',
)
if DEBUG:
......
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