quaint-garden-2983303/02/2022, 3:52 PM
Ideally, i need this to build the image from docker-compose rather than taking the dockerfile.
const img = awsx.ecs.Image.fromPath("app-img", "./app");
miniature-musician-3126203/02/2022, 6:57 PM
Is there a way to point to the docker-compose file in the new ecs image instantiation code in pulumi?There is not; that reference is to a folder containing a Dockerfile — and I don’t think there’s any direct integration with docker-compose (though someone should correct me if that’s no longer correct).
quaint-garden-2983303/03/2022, 4:00 PM
This is the docker-compose file i have. The frontend is a streamlit server and the backend is a fast api server running on two different ports. I feel like having them together makes it slightly easier to connect the frontend and backend together . I don't want to deploy it separately as this is an internal tool and i won't expect the need to scale
version: "3.7" services: frontend: build: frontend ports: - 8501:8501 networks: companynetwork: aliases: - frontend.docker depends_on: - backend volumes: - ./frontend:/app - ./data:/data - ./src:/app/src - ./env:/app/env backend: build: backend ports: - 1000:1000 networks: agpnetwork: aliases: - backend.docker volumes: - ./backend:/app - ./data:/data - ./src:/app/src - ./env:/app/env networks: companynetwork: external: false
miniature-musician-3126203/05/2022, 1:56 AM
quaint-garden-2983303/08/2022, 4:21 PM
miniature-musician-3126203/08/2022, 9:00 PM