Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e624a8fb
authored
Jun 04, 2020
by
Chif Gergő
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create docker-compose, install psycogpy2 dependency
parent
022c3be1
Pipeline
#1155
failed with stage
in 4 minutes 13 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
3 deletions
+37
-3
.dockerignore
+2
-1
Dockerfile
+2
-2
Pipfile
+1
-0
docker-compose.yml
+32
-0
No files found.
.dockerignore
View file @
e624a8fb
...
@@ -63,7 +63,8 @@ coverage.xml
...
@@ -63,7 +63,8 @@ coverage.xml
# Django stuff:
# Django stuff:
*.log
*.log
local_settings.py
local_settings.py
db.sqlite3
*/db.sqlite3
*/*/db.sqlite3
# pyenv
# pyenv
.python-version
.python-version
...
...
Dockerfile
View file @
e624a8fb
...
@@ -6,9 +6,9 @@ RUN pip install pipenv
...
@@ -6,9 +6,9 @@ RUN pip install pipenv
# Open 8000 port
# Open 8000 port
EXPOSE
8000/tcp
EXPOSE
8000/tcp
# Copy files necessary for install dependencies
# Copy files necessary for install dependencies
COPY
Pipfile*
docker
.env ./
COPY
Pipfile* .env ./
# This env variable needed to pipenv find .env file
# 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
# Install dependencies
RUN
pipenv install
-d
RUN
pipenv install
-d
# Copy sources
# Copy sources
...
...
Pipfile
View file @
e624a8fb
...
@@ -23,6 +23,7 @@ channels = "*"
...
@@ -23,6 +23,7 @@ channels = "*"
channels-redis = "*"
channels-redis = "*"
celery = {extras = ["redis"],version = "*"}
celery = {extras = ["redis"],version = "*"}
django-celery-beat = "*"
django-celery-beat = "*"
psycopg2 = "*"
[requires]
[requires]
python_version = "3.6"
python_version = "3.6"
docker-compose.yml
0 → 100644
View file @
e624a8fb
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
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment