set PORT from docker
parent
e9fd42baa5
commit
e5bdee9ee7
|
@ -34,8 +34,10 @@ COPY --from=build /build/node_modules/.prisma/ ./node_modules/.prisma/
|
|||
COPY --from=build /build/yarn.lock /build/package.json ./
|
||||
COPY --from=build /build/.next ./.next
|
||||
COPY --from=build /build/public ./public
|
||||
COPY --from=build /build/scripts ./scripts
|
||||
|
||||
USER node
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["yarn", "start"]
|
||||
ENV PORT=3000
|
||||
EXPOSE $PORT
|
||||
CMD ["yarn", "start-env"]
|
||||
|
|
|
@ -9,6 +9,7 @@ services:
|
|||
DATABASE_URL: postgresql://umami:umami@db:5432/umami
|
||||
DATABASE_TYPE: postgresql
|
||||
HASH_SALT: replace-me-with-a-random-string
|
||||
PORT: 3000
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
|
|
Loading…
Reference in New Issue