1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00
_/example/traefik/compose.yml

17 lines
361 B
YAML
Raw Normal View History

// traefik-compose.ts
import * as express from 'express';
import * as http from 'http';
const app = express();
const server = http.createServer(app);
app.get('/', (req, res) => {
res.send('Hello from Traefik Compose Example!');
});
const PORT = process.env.PORT || 3000;
server.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
});