backend/fastapi/docker-compose-fastapi.yml

27 lines
692 B
YAML

version: "3.8"
services:
api:
image: fastapi:v1
environment:
- TZ=Asia/Seoul
volumes:
- /home/ec2-user/eld/card_service/backend/fastapi/app:/app
command: >
uvicorn main:app --host 0.0.0.0 --port 8098
expose:
- "8098"
nginx:
image: nginx:latest
environment:
- TZ=Asia/Seoul
ports:
- "8097:8097"
volumes:
- /home/ec2-user/eld/card_service/backend/fastapi/nginx.conf:/etc/nginx/nginx.conf
- /home/ec2-user/eld/card_service/backend/fastapi/fullchain.pem:/etc/nginx/ssl/fullchain.pem
- /home/ec2-user/eld/card_service/backend/fastapi/privkey.pem:/etc/nginx/ssl/privkey.pem
depends_on:
- api