-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
7 changed files
with
132 additions
and
3 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
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,57 @@ | ||
# Both .env and env_files/ are needed because of docker-compose realization. | ||
# See good explanation here: | ||
# https://github.com/docker/compose/issues/4223#issuecomment-280077263 | ||
|
||
# Docs here: https://docs.docker.com/compose/environment-variables/#/the-env-file | ||
|
||
COMPOSE_PROJECT_NAME=drone_shopelectro | ||
# It may affect on app logic. Valid values: LOCAL | CI | PROD | ||
ENV_TYPE=LOCAL | ||
|
||
# App related settings | ||
DJANGO_SETTINGS_MODULE=shopelectro.settings.local | ||
DJANGO_LOG_LEVEL=INFO | ||
SECRET_KEY=secret-key | ||
STAGE_SECRET_KEY=another-secret-key | ||
|
||
# URL to required services | ||
POSTGRES_URL=postgres | ||
REDIS_URL=redis | ||
REDIS_PORT=6379 | ||
RABBITMQ_URL=rabbitmq | ||
RABBITMQ_PORT=5672 | ||
# Docs here: https://docs.docker.com/compose/environment-variables/#/the-env-file | ||
|
||
# Credentials for app's services | ||
POSTGRES_USER=postgres | ||
POSTGRES_PASSWORD=pass | ||
POSTGRES_DB=se_prod | ||
POSTGRES_INITDB_XLOGDIR=/var/lib/postgresql/xlog | ||
STAGE_DB_NAME=se_stage | ||
RABBITMQ_DEFAULT_USER=user | ||
RABBITMQ_DEFAULT_PASS=pass | ||
REDIS_PASSWORD=pass | ||
|
||
# Credentials for ftp with files from 1C | ||
FTP_PASS | ||
FTP_USER=1c_exc | ||
FTP_IP=37.18.77.165 | ||
|
||
# Credentials for yandex services | ||
YANDEX_SHOP_PASS=pass | ||
EMAIL_HOST_PASSWORD=pass | ||
# Identify the dependencies folder | ||
DEPS_DIR=/usr/local/lib/python3.6/site-packages | ||
# Identify the source folder | ||
SRC_DIR=/usr/app/src | ||
SRC_DIR_PROD=/home/andre/prog/shopelectro | ||
|
||
REFARM_DIR=../../refarm-site | ||
POSTGRES_DATA_DIR=/var/fidals/se_db | ||
FRONT_BUILD_DIR=/usr/app/front/build | ||
# Exposed ports | ||
VIRTUAL_HOST_PORT=8000 | ||
VIRTUAL_HOST_EXPOSE_PORT=8012 | ||
VIRTUAL_HOST_LIVESERVER_PORT=8020-8030 | ||
VIRTUAL_HOST_STAGE_PORT=8001 | ||
VIRTUAL_HOST_STAGE_EXPOSE_PORT=8011 |
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,18 @@ | ||
# Docs here: https://docs.docker.com/compose/environment-variables/#/the-env-file | ||
|
||
COMPOSE_PROJECT_NAME=drone_shopelectro | ||
# It may affect on app logic. Valid values: LOCAL | CI | PROD | ||
ENV_TYPE=LOCAL | ||
|
||
# App related settings | ||
DJANGO_SETTINGS_MODULE=shopelectro.settings.local | ||
DJANGO_LOG_LEVEL=INFO | ||
SECRET_KEY=secret-key | ||
STAGE_SECRET_KEY=another-secret-key | ||
|
||
# URL to required services | ||
POSTGRES_URL=postgres | ||
REDIS_URL=redis | ||
REDIS_PORT=6379 | ||
RABBITMQ_URL=rabbitmq | ||
RABBITMQ_PORT=5672 |
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,20 @@ | ||
# Docs here: https://docs.docker.com/compose/environment-variables/#/the-env-file | ||
|
||
# Credentials for app's services | ||
POSTGRES_USER=postgres | ||
POSTGRES_PASSWORD=pass | ||
POSTGRES_DB=se_prod | ||
POSTGRES_INITDB_XLOGDIR=/var/lib/postgresql/xlog | ||
STAGE_DB_NAME=se_stage | ||
RABBITMQ_DEFAULT_USER=user | ||
RABBITMQ_DEFAULT_PASS=pass | ||
REDIS_PASSWORD=pass | ||
|
||
# Credentials for ftp with files from 1C | ||
FTP_PASS | ||
FTP_USER=1c_exc | ||
FTP_IP=37.18.77.165 | ||
|
||
# Credentials for yandex services | ||
YANDEX_SHOP_PASS=pass | ||
EMAIL_HOST_PASSWORD=pass |
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,9 @@ | ||
# Identify the dependencies folder | ||
DEPS_DIR=/usr/local/lib/python3.6/site-packages | ||
# Identify the source folder | ||
SRC_DIR=/usr/app/src | ||
SRC_DIR_PROD=/home/andre/prog/shopelectro | ||
|
||
REFARM_DIR=../../refarm-site | ||
POSTGRES_DATA_DIR=/var/fidals/se_db | ||
FRONT_BUILD_DIR=/usr/app/front/build |
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,6 @@ | ||
# Exposed ports | ||
VIRTUAL_HOST_PORT=8000 | ||
VIRTUAL_HOST_EXPOSE_PORT=8012 | ||
VIRTUAL_HOST_LIVESERVER_PORT=8020-8030 | ||
VIRTUAL_HOST_STAGE_PORT=8001 | ||
VIRTUAL_HOST_STAGE_EXPOSE_PORT=8011 |
cc7b6ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puzzle
396-93372351
discovered in.drone.yml
and submitted as #408. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.