-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8784f06
commit ee85449
Showing
25 changed files
with
25,295 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
DEBUG=1 | ||
SECRET_KEY=+ownf%0op*r)rytn0^u38y7sbp_w6nf-uf9cbtm0sk2o#b1^bj | ||
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 35.228.83.205 murrengan.ru www.murrengan.ru [::1] | ||
DATABASE=postgres | ||
|
||
SQL_ENGINE=django.db.backends.postgresql | ||
|
@@ -10,12 +9,4 @@ SQL_PASSWORD=murr_postgres_password | |
SQL_HOST=db | ||
SQL_PORT=5432 | ||
|
||
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend | ||
EMAIL_USE_TLS=True | ||
EMAIL_HOST=smtp.gmail.com | ||
EMAIL_HOST_USER=[email protected] | ||
EMAIL_PORT=587 | ||
EMAIL_HOST_PASSWORD=iufotejcfyojsgby | ||
|
||
BASE_URL=https://murrengan.ru | ||
LOCALHOST=https://murrengan.ru | ||
REDIS_HOST=redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
DEBUG=1 | ||
SECRET_KEY=+ownf%0op*r)rytn0^u38y7sbp_w6nf-uf9cbtm0sk2o#b1^bj | ||
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 35.228.83.205 murrengan.ru www.murrengan.ru [::1] | ||
DATABASE=postgres | ||
|
||
SQL_ENGINE=django.db.backends.postgresql | ||
SQL_DATABASE=murr_postgres_bd | ||
SQL_USER=murr_postgres_user | ||
SQL_PASSWORD=murr_postgres_password | ||
SQL_HOST=db | ||
SQL_PORT=5432 | ||
|
||
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend | ||
EMAIL_USE_TLS=True | ||
EMAIL_HOST=smtp.gmail.com | ||
EMAIL_HOST_USER=[email protected] | ||
EMAIL_PORT=587 | ||
EMAIL_HOST_PASSWORD=iufotejcfyojsgby | ||
|
||
BASE_URL=https://murrengan.ru | ||
LOCALHOST=https://murrengan.ru | ||
|
||
REDIS_HOST=redis | ||
BOT_TOKEN=737836476:AAE8WivMe26JfPm0hu28mAkBzpuxf5fs6Kk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM python:3.7-slim | ||
WORKDIR /home/murrengan_bot | ||
|
||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
RUN pip install --upgrade pip | ||
|
||
COPY ./requirements.txt /home/murrengan_bot/requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
COPY . /home/murrengan_bot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
version: '3.7' | ||
|
||
services: | ||
django: | ||
build: . | ||
command: python manage.py runserver 0.0.0.0:7391 | ||
env_file: | ||
- .env.dev | ||
depends_on: | ||
- db | ||
expose: | ||
- 7391 | ||
volumes: | ||
- static_volume:/home/murrengan/staticfiles | ||
- ./media:/home/murrengan/media | ||
- ./:/home/murrengan | ||
db: | ||
image: postgres:11 | ||
volumes: | ||
- postgres_data:/var/lib/postgresql/data/ | ||
environment: | ||
- POSTGRES_USER=murr_postgres_user | ||
- POSTGRES_PASSWORD=murr_postgres_password | ||
- POSTGRES_DB=murr_postgres_bd | ||
nginx: | ||
image: nginx:mainline-alpine | ||
ports: | ||
- 8000:8000 | ||
- 80:8000 | ||
volumes: | ||
- static_volume:/home/murrengan/staticfiles | ||
- ./media:/home/murrengan/media | ||
- ./dist:/home/murrengan/murr_front/dist | ||
- ./nginx/dev:/etc/nginx/conf.d | ||
depends_on: | ||
- django | ||
redis: | ||
image: redis:latest | ||
bot: | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile_bot | ||
command: python manage.py bot | ||
env_file: | ||
- .env.dev | ||
depends_on: | ||
- db | ||
|
||
volumes: | ||
postgres_data: | ||
static_volume: | ||
media: | ||
dist: | ||
redisdata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from django.contrib import admin | ||
from .models import Coub | ||
|
||
admin.site.register(Coub) |
Oops, something went wrong.