Merge remote-tracking branch 'origin/master'

This commit is contained in:
Андрей Сумин
2025-03-01 01:23:29 +03:00
2 changed files with 12 additions and 13 deletions
+7
View File
@@ -41,6 +41,13 @@ build_backend:
DOCKERFILE_PATH: "Dockerfile" DOCKERFILE_PATH: "Dockerfile"
IMAGE_NAME: "$CI_REGISTRY_IMAGE/backend" IMAGE_NAME: "$CI_REGISTRY_IMAGE/backend"
build_backend-staticfiles:
<<: *build-template
variables:
CONTEXT: "${CI_PROJECT_DIR}/services/backend-staticfiles"
DOCKERFILE_PATH: "Dockerfile"
IMAGE_NAME: "$CI_REGISTRY_IMAGE/backend-staticfiles"
deploy: deploy:
image: alpine:latest image: alpine:latest
stage: deploy stage: deploy
+5 -13
View File
@@ -2,9 +2,7 @@ name: project_name
services: services:
backend: backend:
build: image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest
context: ./services/backend
dockerfile: Dockerfile
depends_on: depends_on:
backend-initdb: backend-initdb:
restart: false restart: false
@@ -36,7 +34,7 @@ services:
restart: unless-stopped restart: unless-stopped
backend-initdb: backend-initdb:
image: image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest
command: ./scripts/initdb command: ./scripts/initdb
depends_on: depends_on:
postgres: postgres:
@@ -58,9 +56,7 @@ services:
required: false required: false
backend-staticfiles: backend-staticfiles:
build: image: gitlab.prodcontest.ru:5050/team-15/project/backend-staticfiles:latest
context: ./services/backend
dockerfile: Dockerfile.staticfiles
env_file: env_file:
- path: ./infrastructure/backend/.env.template - path: ./infrastructure/backend/.env.template
required: true required: true
@@ -82,9 +78,7 @@ services:
restart: unless-stopped restart: unless-stopped
backend-celery-worker: backend-celery-worker:
build: image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest
context: ./services/backend
dockerfile: Dockerfile
command: celery -A config worker -l INFO command: celery -A config worker -l INFO
depends_on: depends_on:
redis: redis:
@@ -120,9 +114,7 @@ services:
restart: unless-stopped restart: unless-stopped
frontend: frontend:
build: image: gitlab.prodcontest.ru:5050/team-15/project/frontend:latest
context: ./services/frontend
dockerfile: Dockerfile
env_file: env_file:
- path: ./infrastructure/frontend/.env.template - path: ./infrastructure/frontend/.env.template
required: true required: true