#Container event container died
39 messages · Page 1 of 1 (latest)
Project ID: 4efcabcd-bcbb-448f-add5-e351605c91d6
4efcabcd-bcbb-448f-add5-e351605c91d6
i dont see a project by that id?
sorry my bad
Project ID: d9c81ecc-be61-45f1-a43c-355a7e7d9042
@runic pewter , can you see it now?
send your dockerfile please
FROM node:18 AS base
WORKDIR /app
COPY package*.json ./
RUN npm install
FROM node:18-slim
WORKDIR /app
COPY --from=base /app .
EXPOSE 8000
try this -
FROM node:18
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . ./
CMD ["node", "src/app.js"]
same issue
this is my composer file
version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
- /app/node_modules
env_file:
- .env
ports:
- "8000:8000"
depends_on:
- mongodb
version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
- /app/node_modules
env_file:
- .env
ports:
- "8000:8000"
depends_on:
- mongodb
mongodb:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
command: ["mongod", "--quiet"]
volumes:
mongodb_data:
mongodb:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
command: ["mongod", "--quiet"]
volumes:
mongodb_data:
why have you commented out the CMD line?
we also dont support docker compose, you would need to deploy that mongodb yourself from our mongodb option
ok thanks
^
please do not commit the .env file to github
you need the CMD line in the dockerfile
what env variable do you use in code?
likely because it only has 500mb of storage
the storage is not full
that doesn't matter, mongo simply needs more than 500mb available
ok so, this is because of storage?
most likely
you would want to upgrade to the hobby plan and then grow the volume to 5gb
if that fixes the issue, i will do it
i have spin up another container again again due to the crash
they would have also had 500mb volumes so the problem persists
but we can see the storage is not full yet
!s