added force recreation to update configs

This commit is contained in:
ITQ
2025-03-01 14:37:44 +03:00
parent 090737d981
commit 1018c0280c
+12 -3
View File
@@ -3,6 +3,8 @@ name: datarush
services: services:
backend: backend:
image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest
build:
context: ./services/backend
depends_on: depends_on:
backend-initdb: backend-initdb:
restart: false restart: false
@@ -35,6 +37,8 @@ services:
backend-initdb: backend-initdb:
image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest
build:
context: ./services/backend
command: ./scripts/initdb command: ./scripts/initdb
depends_on: depends_on:
postgres: postgres:
@@ -57,6 +61,9 @@ services:
backend-staticfiles: backend-staticfiles:
image: gitlab.prodcontest.ru:5050/team-15/project/backend-staticfiles:latest image: gitlab.prodcontest.ru:5050/team-15/project/backend-staticfiles:latest
build:
context: ./services/backend
dockerfile: Dockerfile.staticfiles
env_file: env_file:
- path: ./infrastructure/backend/.env.template - path: ./infrastructure/backend/.env.template
required: true required: true
@@ -79,6 +86,8 @@ services:
backend-celery-worker: backend-celery-worker:
image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest
build:
context: ./services/backend
command: celery -A config worker -l INFO command: celery -A config worker -l INFO
depends_on: depends_on:
redis: redis:
@@ -307,12 +316,12 @@ services:
- name: api - name: api
target: 9000 target: 9000
published: 8005 published: 8005
host_ip: 127.0.0.1 host_ip: 0.0.0.0
protocol: tcp protocol: tcp
- name: console - name: console
target: 9001 target: 9001
published: 8006 published: 8006
host_ip: 127.0.0.1 host_ip: 0.0.0.0
protocol: tcp protocol: tcp
restart: unless-stopped restart: unless-stopped
volumes: volumes:
@@ -338,7 +347,7 @@ services:
- name: web - name: web
target: 9090 target: 9090
published: 8007 published: 8007
host_ip: 127.0.0.1 host_ip: 0.0.0.0
protocol: tcp protocol: tcp
restart: unless-stopped restart: unless-stopped
shm_size: 4mb shm_size: 4mb