build: changed build to image directives

This commit is contained in:
ITQ
2025-03-01 01:22:10 +03:00
parent d48c4f3313
commit d40a4d0caa
+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