Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
57e95f06
Commit
57e95f06
authored
Jul 06, 2021
by
Manuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[demo-backend] updated deployment
parent
133b47b5
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
35 deletions
+10
-35
deployment.yml
src/demo/demo-backend/deployment/deployment.yml
+9
-9
docker-compose.yml
src/demo/demo-backend/docker-compose.yml
+0
-22
restart.sh
src/demo/demo-backend/restart.sh
+0
-1
upload-configs.bat
src/demo/demo-backend/upload-configs.bat
+0
-1
upload.bat
src/demo/demo-backend/upload.bat
+0
-1
wsgi.py
src/demo/demo-backend/wsgi.py
+1
-1
No files found.
src/demo/demo-backend/deployment/deployment.yml
View file @
57e95f06
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
d
ashboard
-backend
name
:
d
emo
-backend
spec
:
type
:
LoadBalancer
selector
:
app
:
d
ashboard
-backend
app
:
d
emo
-backend
ports
:
-
name
:
https
port
:
443
targetPort
:
443
nodePort
:
304
69
port
:
8000
targetPort
:
8000
nodePort
:
304
70
protocol
:
TCP
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
d
ashboard
-backend
name
:
d
emo
-backend
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
d
ashboard
-backend
app
:
d
emo
-backend
template
:
metadata
:
labels
:
app
:
d
ashboard
-backend
app
:
d
emo
-backend
spec
:
containers
:
-
name
:
dashboard
image
:
alexx882/demo-backend
ports
:
-
containerPort
:
443
-
containerPort
:
8000
imagePullPolicy
:
Always
volumeMounts
:
-
mountPath
:
/certs
...
...
src/demo/demo-backend/docker-compose.yml
deleted
100644 → 0
View file @
133b47b5
version
:
'
3'
services
:
flask_app
:
container_name
:
flask_app
restart
:
always
build
:
.
ports
:
-
"
8000:8000"
command
:
gunicorn -w 1 -b 0.0.0.0:8000 wsgi:app
nginx
:
container_name
:
nginx
restart
:
always
build
:
./nginx
ports
:
-
"
81:443"
depends_on
:
-
flask_app
volumes
:
-
/home/herry/certstuff:/certs
src/demo/demo-backend/restart.sh
deleted
100644 → 0
View file @
133b47b5
docker-compose up
-d
--no-deps
--build
src/demo/demo-backend/upload-configs.bat
deleted
100644 → 0
View file @
133b47b5
scp docker-compose.yml herry@live.nope-api.systems:~/reddit_crawler
\ No newline at end of file
src/demo/demo-backend/upload.bat
deleted
100644 → 0
View file @
133b47b5
scp -r . herry@live.nope-api.systems:~/reddit_crawler
\ No newline at end of file
src/demo/demo-backend/wsgi.py
View file @
57e95f06
from
app
import
app
if
__name__
==
"__main__"
:
app
.
run
(
host
=
"0.0.0.0"
,
port
=
8000
)
app
.
run
(
host
=
"0.0.0.0"
,
port
=
8000
,
ssl_context
=
(
"/certs/articonf1.crt"
,
"/certs/articonf1.key"
)
)
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