mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
6f405778b3
# Path: step_1/for_each/if_else/if/create_file_with_ai # UUID: 48fc1120-316c-4299-85d0-842c98b61a66 # Changed files: example/traefik/compose.yml
16 lines
361 B
YAML
16 lines
361 B
YAML
// 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}`);
|
|
});
|