Browse Source

update to latest version

Boris Aguilar 5 years ago
parent
commit
86c77632a5
1 changed files with 16 additions and 8 deletions
  1. 16 8
      docker-compose.yml

+ 16 - 8
docker-compose.yml

@@ -9,7 +9,7 @@ services:
       POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
   redis:
     image: "redis:alpine"
-  web:
+  backend:
     volumes:
       - web-migrations:/opt/web2py/applications/backend/databases/
     depends_on:
@@ -24,37 +24,45 @@ services:
       WEB2PY_ADMIN_SECURITY_BYPASS: "true"
       db_migrate: "true"
       cors_allowed: '["${FRONTEND_URL}"]'
-    image: "hub.botprotec.com/botpro/botpro-backend:${BACKEND_TAG}"
+    image: "hub.botprotec.com/botpro/botpro-backend:${VERSION_TAG}"
     ports:
       - "${WEB_PORT}:8080"
+  frontend:
+    depends_on:
+      - "db"
+      - "redis"
+      - "backend"
+    environment:
+      API_URL: "${FRONTEND_URL}"
+    image: "hub.botprotec.com/botpro/botpro-frontend:${VERSION_TAG}"
   web2py-rq-worker:
     depends_on:
       - "db"
       - "redis"
-      - "web"
+      - "backend"
     environment:
       setup_done: "true"
       db_migrate: "false"
-    image: "hub.botprotec.com/botpro/botpro-backend:${BACKEND_TAG}"
+    image: "hub.botprotec.com/botpro/botpro-backend:${VERSION_TAG}"
   web2py-rq-worker-low:
     depends_on:
       - "db"
       - "redis"
-      - "web"
+      - "backend"
     environment:
       setup_done: "true"
       db_migrate: "false"
       redis_queue: "low"
-    image: "hub.botprotec.com/botpro/botpro-backend-rq-worker:${BACKEND_TAG}"
+    image: "hub.botprotec.com/botpro/botpro-backend-rq-worker:${VERSION_TAG}"
   web2py-worker:
     depends_on:
       - "db"
       - "redis"
-      - "web"
+      - "backend"
     environment:
       db_uri: "postgres://postgres:${POSTGRES_PASSWORD}@db/postgres"
       db_migrate: "false"
-    image: "hub.botprotec.com/botpro/botpro-backend-w2p-worker:${BACKEND_TAG}"
+    image: "hub.botprotec.com/botpro/botpro-backend-w2p-worker:${VERSION_TAG}"
 volumes:
   web-migrations:
   db-data: