diff --git a/db/Dockerfile b/db/Dockerfile index 4eca1f3..1f79c1b 100644 --- a/db/Dockerfile +++ b/db/Dockerfile @@ -1,4 +1,4 @@ FROM mongo:5.0.25 WORKDIR / -COPY init.js . +COPY init.js /docker-entrypoint-initdb.d/ CMD ["mongod", "--port", "27017"] diff --git a/frontend/.env b/frontend/.env new file mode 100644 index 0000000..66b8965 --- /dev/null +++ b/frontend/.env @@ -0,0 +1,2 @@ +REACT_APP_API_URL=http://localhost:3000 + diff --git a/frontend/Dockerfile b/frontend/Dockerfile index ee5abc6..acbf03f 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,5 +1,5 @@ FROM node:20.18.0-alpine -WORKDIR /app +WORKDIR / COPY package.json . RUN npm install COPY . .