Skip to content

Commit

Permalink
update docker-compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
linomp committed Jul 15, 2023
1 parent 486f57e commit 8b3cbf4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 37 deletions.
4 changes: 0 additions & 4 deletions DockerfileHttps
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@ COPY ./app /code/app

# run server
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "443", "--ssl-keyfile=./app/certs/privkey3.pem", "--ssl-certfile=./app/certs/cert3.pem"]

# "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "443", "--ssl-keyfile=./certs/privkey.pem", "--ssl-certfile=./certs/cert.pem"
# make it a bash command
# uvicorn app.main:app --host "0.0.0.0" --port 443 --ssl-keyfile=./app/certs/privkey3.pem --ssl-certfile=./app/certs/cert3.pem
11 changes: 3 additions & 8 deletions build-debug.bash
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
git pull

## This step should be removed... issue is documented here:
## https://github.com/linomp/no-pasaran-backend/issues/1
#cp /etc/letsencrypt/live/apps.xmp.systems/cert.pem app/cert.pem
#cp /etc/letsencrypt/live/apps.xmp.systems/privkey.pem app/privkey.pem
#chmod 777 app/cert.pem
#chmod 777 app/privkey.pem

docker container stop devtest
docker container rm devtest

docker image rm pointless-backend-debug
docker build -t pointless-backend-debug -f DockerfileDebug .

docker run -it --name devtest -p 8080:8080 -p 8443:8443 -v /etc/letsencrypt/archive/apps.xmp.systems:/code/app/certs:ro pointless-backend-debug
docker run -it --name devtest -p 443:443 -v /etc/letsencrypt/archive/apps.xmp.systems:/code/app/certs:ro pointless-backend-debug

# uvicorn app.main:app --host "0.0.0.0" --port 443 --ssl-keyfile=./app/certs/privkey3.pem --ssl-certfile=./app/certs/cert3.pem
9 changes: 0 additions & 9 deletions build-http.bash

This file was deleted.

16 changes: 0 additions & 16 deletions build-https.bash

This file was deleted.

0 comments on commit 8b3cbf4

Please sign in to comment.