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" # 외부에서 8097 포트로 접근 volumes: - /home/ec2-user/eld/card_service/backend/fastapi/nginx.conf:/etc/nginx/nginx.conf - /home/ec2-user/eld/card_service/backend/fastapi/eld.crt:/etc/nginx/ssl/eld.crt - /home/ec2-user/eld/card_service/backend/fastapi/eld.key:/etc/nginx/ssl/eld.key depends_on: - api