Commit 31389d27 authored by Giannis Kepas's avatar Giannis Kepas
Browse files

add docker-compose for http-bridge

parent fa69cd17
Loading
Loading
Loading
Loading
+5 −13
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ Move into the `scorpio-broker` folder and execute the following:

2. Start the broker using Docker Compose:  
    ```bash
    sudo docker compose -f docker-compose-dist.yml up --build
    sudo docker compose -f docker-compose-dist.yml up -d --build
    ```

3. Access the broker:  
@@ -96,26 +96,18 @@ Move into the `http-bridge` folder and execute the following:
    ```bash
    npm install
    ```
4. Build the Docker image
4. Build and run the Docker container through docker-compose
    ```bash
    sudo docker build -t http-bridge .
    ```
5. Run the Docker container
    ```bash
    sudo docker run -d --name http-bridge -p 8080:8080 --env-file .env http-bridge
    sudo docker compose up -d --build
    ```

**The bridge will be accessible at: {HOST}:{PORT}**

### Stopping HTTP Bridge

- To stop the running container:
    ```bash
    sudo docker stop http-bridge
    ```
- To remove the container:
- To stop the stack:
    ```bash
    sudo docker rm http-bridge
    sudo docker compose down
    ```

### NGSI-LD Entity Types
+10 −0
Original line number Diff line number Diff line
services:
  http-bridge:
    container_name: http-bridge
    build: .
    image: http-bridge
    restart: unless-stopped
    ports:
      - "9010:9010"
    env_file:
      - .env