From 7d5e80247b5eae69ad5ab4286371f66da60ef29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Tue, 25 Jul 2023 11:06:00 +0100 Subject: [PATCH] initial commit --- compose.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 compose.yaml diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..629ed15 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,26 @@ +# Comments are provided throughout this file to help you get started. +# If you need more help, visit the Docker compose reference guide at +# https://docs.docker.com/compose/compose-file/ + +# Here the instructions define your application as two services called "todo-app" and “todo-database” +# The service “todo-app” is built from the Dockerfile in the /app directory, +# and the service “todo-database” uses the official MongoDB image +# from Docker Hub - https://hub.docker.com/_/mongo. +# You can add other services your application may depend on here. + +services: + todo-app: + build: + context: ./app + links: + - todo-database + #volumes: + # - ./app:/usr/src/app + # - /usr/src/app/node_modules + ports: + - 3001:3001 + + todo-database: + image: mongo:6 + ports: + - 27017:27017 \ No newline at end of file