2024-12-06 05:12:28 +00:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
api:
|
|
|
|
image: fastapi:v1
|
|
|
|
environment:
|
2025-01-07 06:59:18 +00:00
|
|
|
- TZ=Asia/Seoul
|
2024-12-06 05:12:28 +00:00
|
|
|
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:
|
2025-01-07 06:59:18 +00:00
|
|
|
- TZ=Asia/Seoul
|
2024-12-06 05:12:28 +00:00
|
|
|
ports:
|
2025-01-07 06:59:18 +00:00
|
|
|
- "8097:8097"
|
2024-12-06 05:12:28 +00:00
|
|
|
volumes:
|
|
|
|
- /home/ec2-user/eld/card_service/backend/fastapi/nginx.conf:/etc/nginx/nginx.conf
|
2025-01-07 06:59:18 +00:00
|
|
|
- /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
|
2024-12-06 05:12:28 +00:00
|
|
|
depends_on:
|
|
|
|
- api
|