Explorar el Código

add local docker-compose to build

ahgraber hace 4 años
padre
commit
d6c344b5ec
Se han modificado 1 ficheros con 24 adiciones y 0 borrados
  1. 24 0
      docker/docker-compose.yaml

+ 24 - 0
docker/docker-compose.yaml

@@ -0,0 +1,24 @@
+# docker-compose.yml
+# RUN: ```docker-compose --env-file```
+version: "3.7"
+
+services:
+  npm:
+    build:   
+      context: ../
+      dockerfile: ./docker/Dockerfile
+      args:
+        VERSION: 2.7.3  #"${NPM_VERSION}"  # if using .env file
+    image: npm:test              # provide a name and tag for the image
+  # mariadb:
+  #   build:
+  #     context: .
+  #     dockerfile: Dockerfile-mariadb
+  #     args:
+  #       VERSION: 10.4.15  #"${MARIADB_VERSION}"  # if using .env file
+  #   image: mariadb:test
+
+
+  # volumes:  # Optional, same as `docker volume create`
+
+  # networks:  # Optional, same as `docker network create`