set PORT from docker

pull/634/head
Cory Forsstrom 2021-04-21 11:47:18 -07:00
parent e9fd42baa5
commit e5bdee9ee7
No known key found for this signature in database
GPG Key ID: 64D6B5851FFCAC9E
2 changed files with 5 additions and 2 deletions

View File

@ -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"]

View File

@ -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: