add competition service to compose

This commit is contained in:
Timur Kh.
2025-12-17 12:45:53 +03:00
parent e6bbaa769a
commit ec098b43b9
2 changed files with 75 additions and 0 deletions
+44
View File
@@ -33,6 +33,46 @@ services:
restart: unless-stopped
shm_size: 4mb
competition:
build:
context: .
dockerfile: Containerfile
depends_on:
postgres:
restart: false
condition: service_healthy
required: true
redis:
restart: false
condition: service_healthy
required: true
auth:
restart: false
condition: service_started
required: true
env_file:
- path: ./infrastructure/competition/.env.template
required: true
- path: ./infrastructure/competition/.env
required: false
ports:
- name: http
target: 8082
published: 13445
host_ip: 127.0.0.1
protocol: tcp
app_protocol: http
- name: grpc
target: 50053
published: 13446
host_ip: 127.0.0.1
protocol: tcp
app_protocol: http
networks:
- default
restart: unless-stopped
shm_size: 4mb
core:
build:
context: .
@@ -54,6 +94,10 @@ services:
restart: false
condition: service_started
required: true
competition:
restart: false
condition: service_started
required: true
env_file:
- path: ./infrastructure/core/.env.template
required: true