'Trouble running the 'sudo docker-compose up' command
I am trying to run the 'sudo docker-compose up' command to start some services. Recently, I created some new services, but I keep getting the error shown in the image. Any help on what could be causing these issues is much appreciated.
I did auto-generate code using a thrift file, and my thrift file contents is below:
namespace cpp vending_machine
namespace py vending_machine
namespace lua vending_machine
enum ErrorCode {
SE_CONNPOOL_TIMEOUT,
SE_THRIFT_CONN_ERROR,
SE_UNAUTHORIZED,
SE_MEMCACHED_ERROR,
SE_MONGODB_ERROR,
SE_REDIS_ERROR,
SE_THRIFT_HANDLER_ERROR,
SE_RABBITMQ_CONN_ERROR
}
exception ServiceException {
1: ErrorCode errorCode;
2: string message;
}
struct location{
1: i64 location_id;
2: i64 city;
}
enum WeatherType{
WARM,
COLD
}
enum BeverageType{
HOT,
COLD
}
service OrderBeverageService{
string PlaceOrder(
1: i64 city
)throws (1: ServiceException se)
}
service WeatherService{
WeatherType GetWeather(
1: i64 city
)
}
service BeveragePreferenceService{
string getBeverage(
1: BeverageType btype
)
}
Also, my docker-compose.yml file is:
version: "3"
services:
order-beverage-service:
image: taharang/vending-machine-microservices:latest
hostname: order-beverage-service
restart: always
entrypoint: OrderBeverageService
weather-service:
image: taharang/vending-machine-microservices:latest
hostname: weather-service
restart: always
entrypoint: WeatherService
beverage-preference-service:
image: taharang/vending-machine-microservices:latest
hostname: beverage-preference-service
restart: always
entrypoint: BeveragePreferenceService
nginx-thrift:
image: yg397/openresty-thrift:xenial
hostname: nginx-thrift
ports:
- 8080:8080
restart: always
volumes:
- ./nginx_reverse_proxy/lua-scripts:/usr/local/openresty/nginx/lua-scripts
- ./nginx_reverse_proxy/conf/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf
- ./gen-lua:/gen-lua
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|