
- Use a single Dockerfile for all Zeppelin services - Add a Dockerfile in project root that can be used by app hosting services - Provide a standalone and lightweight prod setup - Standalone is the same as the old setup, with mysql+nginx - Lightweight only runs bot+backend+dash, no mysql/nginx - Remove mounted mysql data folders for dev and prod - This resolves permission issues caused by the mount - The mysql service uses a regular named volume now - Simplify .env options and clearly separate different prod setups - Remove update.sh - Different setups require different update procedures, so a common update.sh no longer works
14 lines
365 B
JavaScript
14 lines
365 B
JavaScript
const fastify = require("fastify")({ logger: true });
|
|
const fastifyStatic = require("@fastify/static");
|
|
const path = require("path");
|
|
|
|
fastify.register(fastifyStatic, {
|
|
root: path.join(__dirname, "dist"),
|
|
});
|
|
|
|
fastify.listen({ port: 3002, host: '0.0.0.0' }, (err, address) => {
|
|
if (err) {
|
|
throw err;
|
|
}
|
|
console.log(`Server listening on ${address}`);
|
|
});
|