diff --git a/docker-compose.yml b/docker-compose.yml index ac14542..e203ebc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,37 +1,37 @@ -services: - mongodb: - image: mongo:latest - container_name: mongo - ports: - - "27017:27017" - volumes: - - mongodb_data:/data/db - restart: always - - backend: - build: - context: ./backend - container_name: backend - env_file: - - ./backend/.env - ports: - - "3000:3000" - depends_on: - - mongodb - restart: always - volumes: - - ./backend:/usr/src/app - - /usr/src/app/node_modules - - frontend: - image: nginx:latest - container_name: frontend - ports: - - "8080:80" - volumes: - - ./frontend:/usr/share/nginx/html:ro - restart: always - -volumes: - mongodb_data: - external: false +services: + mongodb: + image: mongo:latest + container_name: mongo + ports: + - "27017:27017" + volumes: + - mongodb_data:/data/db + restart: always + + backend: + build: + context: ./backend + container_name: backend + env_file: + - ./backend/.env + ports: + - "3000:3000" + depends_on: + - mongodb + restart: always + volumes: + - ./backend:/usr/src/app + - /usr/src/app/node_modules + + frontend: + image: nginx:latest + container_name: frontend + ports: + - "8080:80" + volumes: + - ./frontend:/usr/share/nginx/html:ro + restart: always + +volumes: + mongodb_data: + external: false diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..c2b6c7e --- /dev/null +++ b/dockerfile @@ -0,0 +1,8 @@ +# Use an official nginx image +FROM nginx:alpine + +# Copy HTML files to the nginx directory +COPY . /usr/share/nginx/html + +# Expose port 80 +EXPOSE 80 diff --git a/frontend/index.html b/frontend/index.html index 1e56c24..7909f68 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -86,6 +86,16 @@
"This platform has greatly improved my skills!"
+"A rewarding and fun way to learn."
+