Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
shadowban-eu-backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
shadowban-eu-backend
Commits
ff3c6202
Commit
ff3c6202
authored
Sep 03, 2019
by
Raphael Beer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add: docker setup
parent
106e708f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
11 deletions
+56
-11
Dockerfile
Dockerfile
+8
-0
docker-compose.development.yml
docker-compose.development.yml
+4
-0
docker-compose.yml
docker-compose.yml
+17
-0
docker-entry.sh
docker-entry.sh
+25
-0
run.sh
run.sh
+2
-11
No files found.
Dockerfile
0 → 100644
View file @
ff3c6202
FROM
python:3.5.7-slim-buster
RUN
mkdir
/app
WORKDIR
/app
ADD
requirements.txt /app/
ADD
. /app
RUN
pip3
install
--no-cache-dir
-r
./requirements.txt
docker-compose.development.yml
0 → 100644
View file @
ff3c6202
version
:
"
3.5"
services
:
tester
:
command
:
[
"
bash"
,
"
./run.sh"
,
"
development"
]
docker-compose.yml
0 → 100644
View file @
ff3c6202
version
:
"
3.5"
services
:
tester
:
build
:
.
command
:
[
"
bash"
,
"
./docker-entry.sh"
]
env_file
:
${EXPECTED_ENV_FILE}
ports
:
-
"
127.0.0.1:${PORT}:${PORT}"
volumes
:
-
.:/app
networks
:
-
mongodb
networks
:
mongodb
:
external
:
name
:
shadowban-eu_mongodb
docker-entry.sh
0 → 100755
View file @
ff3c6202
#/usr/bin/env bash
echo
"Starting server..."
echo
"--account-file
$ACCOUNT_FILE
"
echo
"--cookie-dir
$COOKIE_DIR
"
echo
"--log
$LOG_FILE
"
echo
"--debug
$DEBUG_FILE
"
echo
"--port "
$PORT
""
echo
"--host "
$HOST
""
echo
"--mongo-host
$MONGO_HOST
"
echo
"--mongo-port
$MONGO_PORT
"
echo
"--mongo-db
$MONGO_DB
"
echo
"--twitter-auth-key
$TWITTER_AUTH_KEY
"
python3
-u
./backend.py
\
--account-file
$ACCOUNT_FILE
\
--cookie-dir
$COOKIE_DIR
\
--log
$LOG_FILE
\
--debug
$DEBUG_FILE
\
--port
"
$PORT
"
\
--host
"
$HOST
"
\
--mongo-host
$MONGO_HOST
\
--mongo-port
$MONGO_PORT
\
--mongo-db
$MONGO_DB
\
--twitter-auth-key
$TWITTER_AUTH_KEY
run.sh
View file @
ff3c6202
...
...
@@ -13,15 +13,6 @@ if [ ! -f $EXPECTED_ENV_FILE ]; then
fi
echo
"Using configuration from:
$EXPECTED_ENV_FILE
"
source
$EXPECTED_ENV_FILE
echo
"Listening on:
$PORT
"
echo
"Starting server..."
python3 ./backend.py
\
--account-file
$ACCOUNT_FILE
\
--cookie-dir
$COOKIE_DIR
\
--log
$LOG_FILE
\
--debug
$DEBUG_FILE
\
--port
"
$PORT
"
\
--mongo-host
$MONGO_HOST
\
--mongo-port
$MONGO_PORT
\
--mongo-db
$MONGO_DB
\
--twitter-auth-key
$TWITTER_AUTH_KEY
PORT
=
$PORT
EXPECTED_ENV_FILE
=
$EXPECTED_ENV_FILE
docker-compose
-f
docker-compose.yml up
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