[image-service] first commit
This commit is contained in:
commit
88351993cf
6 changed files with 153 additions and 0 deletions
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
version: "3.9"
|
||||
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
container_name: taobin-image-container
|
||||
ports:
|
||||
- "8125:8125"
|
||||
environment:
|
||||
- PYTHONUNBUFFERED=1
|
||||
volumes:
|
||||
- ~/repo/taobin_project:/taobin_project
|
||||
restart: always
|
||||
command: uvicorn main:app --host 0.0.0.0 --port 8125
|
||||
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
container_name: nginx-image-container
|
||||
volumes:
|
||||
- ~/repo/taobin_project:/taobin_project
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
ports:
|
||||
- "8126:80"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue