Docker setup work
This commit is contained in:
@@ -1,12 +1,10 @@
|
|||||||
x-service-base: &service-base
|
x-service-base: &service-base
|
||||||
user: ${UID:?UID missing}:${GID:?GID missing}
|
user: ${UID:?UID missing}:${GID:?GID missing}
|
||||||
tty: true
|
tty: true
|
||||||
env_file: .env
|
|
||||||
|
|
||||||
x-service-bun: &service-bun
|
x-service-bun: &service-bun
|
||||||
<<: *service-base
|
<<: *service-base
|
||||||
image: oven/bun
|
image: oven/bun
|
||||||
working_dir: /app/
|
|
||||||
|
|
||||||
x-volume-app: &volume-app ./:/app/
|
x-volume-app: &volume-app ./:/app/
|
||||||
|
|
||||||
@@ -18,8 +16,12 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- *volume-app
|
- *volume-app
|
||||||
working_dir: /app/packages/server
|
working_dir: /app/packages/server
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: development
|
NODE_ENV: development
|
||||||
|
HTTP_PORT: 80
|
||||||
entrypoint: ["bun", "src/index.ts"]
|
entrypoint: ["bun", "src/index.ts"]
|
||||||
|
|
||||||
webui:
|
webui:
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export module ServerConfig {
|
|||||||
Config.withDefault("development"),
|
Config.withDefault("development"),
|
||||||
)
|
)
|
||||||
|
|
||||||
export const httpPort = Config.number("HTTP_PORT").pipe(Config.withDefault(8080))
|
export const httpPort = Config.number("HTTP_PORT").pipe(Config.withDefault(80))
|
||||||
export const rpcHTTPRoot = Config.string("RPC_HTTP_ROOT").pipe(Config.withDefault("/rpc"))
|
export const rpcHTTPRoot = Config.string("RPC_HTTP_ROOT").pipe(Config.withDefault("/rpc"))
|
||||||
export const rpcHTTPPlaygroundRoot = Config.string("RPC_HTTP_PLAYGROUND_ROOT").pipe(Config.withDefault("/rpc/playground"))
|
export const rpcHTTPPlaygroundRoot = Config.string("RPC_HTTP_PLAYGROUND_ROOT").pipe(Config.withDefault("/rpc/playground"))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,8 +5,12 @@ import { defineConfig } from "vite"
|
|||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
server: {
|
||||||
|
port: 80,
|
||||||
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
TanStackRouterVite(),
|
TanStackRouterVite(),
|
||||||
react(),
|
react(),
|
||||||
]
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user