forked from potsda.mn/mobilizon
make vite server reachable from outside the container
[fix #1225] https://framagit.org/framasoft/mobilizon/-/issues/1225
This commit is contained in:
parent
d52dc72f9a
commit
f887455d66
|
@ -7,3 +7,4 @@ RUN mix local.hex --force && mix local.rebar --force
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
|
EXPOSE 5173
|
|
@ -19,6 +19,7 @@ services:
|
||||||
- ".:/app"
|
- ".:/app"
|
||||||
ports:
|
ports:
|
||||||
- 4000:4000
|
- 4000:4000
|
||||||
|
- 5173:5173
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -30,6 +30,9 @@ export default defineConfig(({ command }) => {
|
||||||
}),
|
}),
|
||||||
visualizer(),
|
visualizer(),
|
||||||
],
|
],
|
||||||
|
server: {
|
||||||
|
host: (isDev ? "0.0.0.0" : "localhost")
|
||||||
|
},
|
||||||
build: {
|
build: {
|
||||||
manifest: true,
|
manifest: true,
|
||||||
outDir: path.resolve(__dirname, "../priv/static"),
|
outDir: path.resolve(__dirname, "../priv/static"),
|
||||||
|
|
Loading…
Reference in a new issue