docker-compose
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
version: '3.7'
|
||||
services:
|
||||
nginx:
|
||||
container-name: nginx
|
||||
image: nginx:latest
|
||||
container_name: nginx
|
||||
depends_on: app
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
@@ -26,5 +27,9 @@ services:
|
||||
volumes:
|
||||
- ./:/personal_api/
|
||||
command: gunicorn -w 4 -k uvicorn.workers.UvicornWorker personal_api.main:app -b 0.0.0.0
|
||||
networks:
|
||||
my-network:
|
||||
aliases:
|
||||
- personal-api
|
||||
ports:
|
||||
- "8000:8000"
|
||||
|
||||
Reference in New Issue
Block a user