modified: main_dc/docker-compose.yml
modified: main_dc/yalarba/api_yal/Dockerfile add service into docker-compose.yml, upgrade the Dcoekrfile for api_yal
This commit is contained in:
@@ -65,6 +65,8 @@ services:
|
||||
condition: service_healthy
|
||||
analytics:
|
||||
condition: service_healthy
|
||||
api_yal:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost/health || exit 1"]
|
||||
interval: 30s
|
||||
@@ -268,6 +270,37 @@ services:
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
# REST API app on Golang для api_yal сервиса
|
||||
api_yal:
|
||||
build:
|
||||
context: ./api_yal # Укажите правильный путь к вашему проекту
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8787:8787"
|
||||
container_name: api_yal
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
APP_PORT: 8787
|
||||
LOG_LEVEL: info
|
||||
networks:
|
||||
- web-network
|
||||
- app-network
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD",
|
||||
"wget",
|
||||
"--no-verbose",
|
||||
"--tries=1",
|
||||
"--spider",
|
||||
"http://localhost:8787/auth",
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
|
||||
volumes:
|
||||
certbot_data: # volume для данных Certbot
|
||||
certbot_www: # volume для данных Certbot
|
||||
|
||||
Reference in New Issue
Block a user