This commit is contained in:
2019-11-01 00:14:24 +01:00
parent 92a25e0ec0
commit 24083e5d6d
2 changed files with 2 additions and 6 deletions

View File

@@ -1,6 +1,3 @@
upstream personal_api {
server app:8000;
}
server {
listen 80;
server_name api.averba.ch; location / {

View File

@@ -6,8 +6,7 @@ services:
depends_on:
- app
ports:
- "80:80"
- "443:443"
- "80:8000"
networks:
- my-network
volumes:
@@ -32,7 +31,7 @@ services:
- ./:/personal_api/
command: gunicorn -w 4 -k uvicorn.workers.UvicornWorker personal_api.main:app -b 0.0.0.0:8000
expose:
- 8000
- "8000"
networks:
my-network:
aliases: