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
Hide 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
apiVersion
:
v1
kind
:
Service
kind
:
Service
metadata
:
metadata
:
name
:
d
ashboard
-backend
name
:
d
emo
-backend
spec
:
spec
:
type
:
LoadBalancer
type
:
LoadBalancer
selector
:
selector
:
app
:
d
ashboard
-backend
app
:
d
emo
-backend
ports
:
ports
:
-
name
:
https
-
name
:
https
port
:
443
port
:
8000
targetPort
:
443
targetPort
:
8000
nodePort
:
304
69
nodePort
:
304
70
protocol
:
TCP
protocol
:
TCP
---
---
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deployment
kind
:
Deployment
metadata
:
metadata
:
name
:
d
ashboard
-backend
name
:
d
emo
-backend
spec
:
spec
:
replicas
:
1
replicas
:
1
selector
:
selector
:
matchLabels
:
matchLabels
:
app
:
d
ashboard
-backend
app
:
d
emo
-backend
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
app
:
d
ashboard
-backend
app
:
d
emo
-backend
spec
:
spec
:
containers
:
containers
:
-
name
:
dashboard
-
name
:
dashboard
image
:
alexx882/demo-backend
image
:
alexx882/demo-backend
ports
:
ports
:
-
containerPort
:
443
-
containerPort
:
8000
imagePullPolicy
:
Always
imagePullPolicy
:
Always
volumeMounts
:
volumeMounts
:
-
mountPath
:
/certs
-
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
from
app
import
app
if
__name__
==
"__main__"
:
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