sparse-intern-71089
03/02/2022, 3:52 PMquaint-garden-29833
03/02/2022, 3:54 PMquaint-garden-29833
03/02/2022, 3:55 PMminiature-musician-31262
03/02/2022, 6:57 PMIs 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).
miniature-musician-31262
03/02/2022, 6:58 PMquaint-garden-29833
03/03/2022, 4:00 PMversion: "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
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 scaleminiature-musician-31262
03/05/2022, 1:56 AMquaint-garden-29833
03/08/2022, 4:21 PMminiature-musician-31262
03/08/2022, 9:00 PMminiature-musician-31262
03/08/2022, 9:02 PMpulumi/examples
that demonstrate using our @pulumi/aws
and @pulumi/awsx
libraries to do this, so I’d encourage you to take a look: https://github.com/pulumi/examples