From 1018c0280c4b0bfc3f4836fac4c8e13761d77f35 Mon Sep 17 00:00:00 2001 From: ITQ Date: Sat, 1 Mar 2025 14:37:44 +0300 Subject: [PATCH] added force recreation to update configs --- compose.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/compose.yaml b/compose.yaml index 87231d1..21501ef 100644 --- a/compose.yaml +++ b/compose.yaml @@ -3,6 +3,8 @@ name: datarush services: backend: image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest + build: + context: ./services/backend depends_on: backend-initdb: restart: false @@ -35,6 +37,8 @@ services: backend-initdb: image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest + build: + context: ./services/backend command: ./scripts/initdb depends_on: postgres: @@ -57,6 +61,9 @@ services: backend-staticfiles: image: gitlab.prodcontest.ru:5050/team-15/project/backend-staticfiles:latest + build: + context: ./services/backend + dockerfile: Dockerfile.staticfiles env_file: - path: ./infrastructure/backend/.env.template required: true @@ -79,6 +86,8 @@ services: backend-celery-worker: image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest + build: + context: ./services/backend command: celery -A config worker -l INFO depends_on: redis: @@ -307,12 +316,12 @@ services: - name: api target: 9000 published: 8005 - host_ip: 127.0.0.1 + host_ip: 0.0.0.0 protocol: tcp - name: console target: 9001 published: 8006 - host_ip: 127.0.0.1 + host_ip: 0.0.0.0 protocol: tcp restart: unless-stopped volumes: @@ -338,7 +347,7 @@ services: - name: web target: 9090 published: 8007 - host_ip: 127.0.0.1 + host_ip: 0.0.0.0 protocol: tcp restart: unless-stopped shm_size: 4mb