Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
f1fbf362
Commit
f1fbf362
authored
Apr 19, 2021
by
carlosribas
Browse files
Add info to connect to S3
parent
38972d2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
docker-compose.yml
docker-compose.yml
+4
-0
entrypoint.sh
entrypoint.sh
+11
-2
No files found.
docker-compose.yml
View file @
f1fbf362
...
...
@@ -14,6 +14,10 @@ services:
-
DB_PASSWORD=${DB_PASSWORD}
-
DB_PORT=${DB_PORT}
-
SECRET_KEY=${SECRET_KEY}
-
DJANGO_DEBUG=${DJANGO_DEBUG}
-
S3_HOST=${S3_HOST}
-
S3_KEY=${S3_KEY}
-
S3_SECRET=${S3_SECRET}
expose
:
-
8000
volumes
:
...
...
entrypoint.sh
View file @
f1fbf362
...
...
@@ -13,6 +13,10 @@ DB_PASSWORD=${DB_PASSWORD:-'NWDMCE5xdipIjRrp'}
# RNAcentral specific settings
SECRET_KEY
=
${
SECRET_KEY
:-
'your_secret_key'
}
DJANGO_DEBUG
=
${
DJANGO_DEBUG
:-
'False'
}
S3_HOST
=
${
S3_HOST
}
S3_KEY
=
${
S3_KEY
}
S3_SECRET
=
${
S3_SECRET
}
# Supervisor
SUPERVISOR_CONF_DIR
=
${
SUPERVISOR_CONF_DIR
:-
"/srv/rnacentral/supervisor"
}
...
...
@@ -32,10 +36,14 @@ else
from .utils import get_environment
SECRET_KEY = "
$SECRET_KEY
"
ENVIRONMENT = get_environment()
if ENVIRONMENT == 'DEV':
DEBUG = True
INTERNAL_IPS = ('127.0.0.1', '192.168.99.1')
COMPRESS_ENABLED = False
S3_SERVER = {
"HOST": "
$S3_HOST
",
"KEY": "
$S3_KEY
",
"SECRET": "
$S3_SECRET
",
"BUCKET": "ebi-rnacentral",
}
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.memcached.MemcachedCache",
...
...
@@ -66,6 +74,7 @@ else
}
}
EOF
sed
-i
"3 a DEBUG =
${
DJANGO_DEBUG
}
"
"
${
RNACENTRAL_PROJECT_PATH
}
"
/rnacentral/local_settings.py
chown
-R
rnacentral
"
${
RNACENTRAL_PROJECT_PATH
}
"
/rnacentral/local_settings.py
fi
...
...
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