Commit e624a8fb by Chif Gergő

Create docker-compose, install psycogpy2 dependency

parent 022c3be1
Pipeline #1155 failed with stage
in 4 minutes 13 seconds
......@@ -63,7 +63,8 @@ coverage.xml
# Django stuff:
*.log
local_settings.py
db.sqlite3
*/db.sqlite3
*/*/db.sqlite3
# pyenv
.python-version
......
......@@ -6,9 +6,9 @@ RUN pip install pipenv
# Open 8000 port
EXPOSE 8000/tcp
# Copy files necessary for install dependencies
COPY Pipfile* docker.env ./
COPY Pipfile* .env ./
# This env variable needed to pipenv find .env file
ENV PIPENV_DOTENV_LOCATION=/usr/cloud/portal/docker.env
ENV PIPENV_DOTENV_LOCATION=/usr/cloud/portal/.env
# Install dependencies
RUN pipenv install -d
# Copy sources
......
......@@ -23,6 +23,7 @@ channels = "*"
channels-redis = "*"
celery = {extras = ["redis"],version = "*"}
django-celery-beat = "*"
psycopg2 = "*"
[requires]
python_version = "3.6"
version: "3.8"
services:
backend:
build: .
image: portal:compose
ports:
- "8000:8000"
networks:
- backend
depends_on:
- db
- redis
db:
image: postgres:13-alpine
environment:
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_DB: ${DATABASE_NAME}
networks:
- backend
redis:
image: redis:alpine
ports:
- "6379"
networks:
- backend
networks:
backend:
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 sign in to comment