Skip to content
Snippets Groups Projects
Unverified Commit 56d7b65a authored by Georg Krause's avatar Georg Krause
Browse files

Add required information to deploy using docker

parent 1e7b5a0f
No related branches found
No related tags found
No related merge requests found
FROM python:3.10-alpine
WORKDIR /app
COPY pyproject.toml poetry.lock /app/
RUN apk add poetry python3-dev libxml2-dev libxslt-dev musl-dev build-base libffi-dev libuv postgresql-dev
RUN poetry install
COPY retribute_api /app/retribute_api
COPY config /app/config
CMD poetry run gunicorn config.asgi:application -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8091
DJANGO_SECRET_KEY=
CACHE_URL=rediscache://127.0.0.1:6379/1
DJANGO_ALLOWED_HOSTS=
DJANGO_SECURE_SSL_REDIRECT=True
DJANGO_DEBUG=False
BASE_URL=https://
CACHE_DEFAULT_EXPIRATION=1900
...@@ -10,3 +10,11 @@ services: ...@@ -10,3 +10,11 @@ services:
- "./data/redis:/data" - "./data/redis:/data"
ports: ports:
- "127.0.0.1:6379:6379" - "127.0.0.1:6379:6379"
api:
restart: always
env_file:
- .env
image: funkwhale/retribute-api
ports:
- "127.0.0.1:8091:8091"
poetry.lock 0 → 100644
This diff is collapsed.
[tool.poetry]
name = "retribute-api"
version = "0.1.0"
description = ""
authors = ["Funkwhale Collective"]
license = "AGPLv3"
[tool.poetry.dependencies]
python = "^3.7"
aiohttp = "3.5.4"
aioredis = "1.2.0"
argon2-cffi = "19.1.0"
channels-redis = "2.4.0"
channels = "2.2.0"
daphne = "2.3.0"
django-environ = "0.4.5"
django-redis = "4.10.0"
Django = "2.2.2"
djangorestframework = "3.9.4"
gunicorn = "20.0.4"
lxml = "4.6.3"
Markdown = "3.1.1"
psycopg2-binary = "2.8.6"
pytz = "2020.4"
redis = "3.2.1"
uvicorn = {version = "0.13.4", extras = ["standard"]}
whitenoise = "5.2.0"
wsproto = "0.15.0"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
  • For children and adults alike, card games can be educational https://juwa777download.us/, teaching math skills, pattern recognition, and logical thinking.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment