Explorar el Código

add grocery-transactions rest api to docker compose

Pi hace 1 año
padre
commit
9d17a69c21
Se han modificado 2 ficheros con 19 adiciones y 1 borrados
  1. 1 0
      .dockerignore
  2. 18 1
      docker-compose.yml

+ 1 - 0
.dockerignore

@@ -3,4 +3,5 @@ media/
 prayer-generator
 !prayer-generator/xml
 !prayer-generator/license
+grocery-transactions
 

+ 18 - 1
docker-compose.yml

@@ -20,13 +20,30 @@ services:
     environment:
       HOST: 192.168.0.20
       USER: pgdb
-      PASSWORD: ${PASSWORD}
+      PASSWORD: ${PGDB_PASSWORD}
     expose:
       - 11888
     networks:
       - traefik
     restart: always
 
+  grocery-pyapi:
+    image: grocery-pyapi
+    hostname: grocery-pyapi
+    build:
+      context: ./grocery-transactions
+      dockerfile: app/rest/Dockerfile
+    environment:
+      HOST: 192.168.0.20
+      USER: pi
+      PASSWORD: ${GROCERYDB_PASSWORD}
+    expose:
+      - 6772
+    networks:
+      - traefik
+    restart: always
+
 networks:
   traefik:
     external: true
+