DEV Community

Discussion on: Learn Docker - from the beginning, part IV docker-compose basics

Collapse
 
softchris profile image
Chris Noring

Here it is

```const express = require('express')
const app = express()
const port = process.env.PORT || 3000;

app.get('/', (req, res) => res.send('Hello inventory service'))```

Collapse
 
thebadcoder profile image
TheBadCoder

Thank you Chris, you are quick😊 I did something similar. Both of my containers are up and running but don't know why I can not access the (localhost:external_port) from my host machine !!

Thread Thread
 
softchris profile image
Chris Noring

are you on windows or mac?

Thread Thread
 
thebadcoder profile image
TheBadCoder

I am using ubuntu.