docker :(
This commit is contained in:
parent
43792d87b2
commit
e493e79db3
2 changed files with 1 additions and 5 deletions
|
@ -24,9 +24,6 @@ WORKDIR /app
|
||||||
COPY --from=strip-dev-deps /app ./
|
COPY --from=strip-dev-deps /app ./
|
||||||
COPY --from=frontend-compiler /app/frontend/public ./frontend/public
|
COPY --from=frontend-compiler /app/frontend/public ./frontend/public
|
||||||
RUN echo "JWT_SECRET=$(openssl rand -base64 256 | tr -d '\n')" > .env
|
RUN echo "JWT_SECRET=$(openssl rand -base64 256 | tr -d '\n')" > .env
|
||||||
USER node
|
|
||||||
USER root
|
|
||||||
VOLUME /var/lib/waffle
|
|
||||||
RUN mkdir -p /var/lib/waffle/uploads && chown -R node /var/lib/waffle/uploads
|
RUN mkdir -p /var/lib/waffle/uploads && chown -R node /var/lib/waffle/uploads
|
||||||
USER node
|
USER node
|
||||||
CMD [ "/bin/sh", "-c", "node index.js" ]
|
CMD [ "/bin/sh", "-c", "node index.js" ]
|
||||||
|
|
|
@ -10,8 +10,6 @@ services:
|
||||||
- POSTGRES_PASSWORD=supersecretpassword11
|
- POSTGRES_PASSWORD=supersecretpassword11
|
||||||
waffle:
|
waffle:
|
||||||
build: .
|
build: .
|
||||||
volumes:
|
|
||||||
- ./tmp/waffle:/var/lib/waffle
|
|
||||||
ports:
|
ports:
|
||||||
- "5002:3000"
|
- "5002:3000"
|
||||||
environment:
|
environment:
|
||||||
|
@ -21,5 +19,6 @@ services:
|
||||||
- PGDATABASE=waffle
|
- PGDATABASE=waffle
|
||||||
- AVATAR_UPLOADS_DIR=/var/lib/waffle/uploads/avatar
|
- AVATAR_UPLOADS_DIR=/var/lib/waffle/uploads/avatar
|
||||||
- ATTACHMENT_UPLOADS_DIR=/var/lib/waffle/uploads/attachment
|
- ATTACHMENT_UPLOADS_DIR=/var/lib/waffle/uploads/attachment
|
||||||
|
- NODE_ENV=production
|
||||||
depends_on:
|
depends_on:
|
||||||
- waffle-postgres
|
- waffle-postgres
|
||||||
|
|
Loading…
Reference in a new issue