modified: main_dc/docker-compose.yml
modified: main_dc/nginx/nginx-ssl.conf modified: main_dc/yalarba/api_es/Dockerfile modified: main_dc/yalarba/api_es/cmd/main.go modified: main_dc/yalarba/api_es/go.mod new file: main_dc/yalarba/api_es/go.sum add api_es for REST API backend to easysite, add config nginx, add server connection from api_es to db_tp
This commit is contained in:
@@ -177,6 +177,31 @@ services:
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
api_easysite:
|
||||
build:
|
||||
context: ./api_easysite
|
||||
dockerfile: Dockerfile
|
||||
container_name: api_easysite
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
DB_HOST: db
|
||||
DB_PORT: 5432
|
||||
DB_USER: postgres
|
||||
DB_PASSWORD: postgres
|
||||
DB_NAME: mydb
|
||||
APP_PORT: 8081
|
||||
networks:
|
||||
- app-network
|
||||
- web-network
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8081/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
volumes:
|
||||
certbot_data:
|
||||
certbot_www:
|
||||
@@ -194,6 +219,5 @@ networks:
|
||||
bb-network:
|
||||
driver: bridge
|
||||
|
||||
|
||||
# Эта опция автоматически удаляет orphans
|
||||
x-remove-orphans: true
|
||||
x-remove-orphans: true
|
||||
|
||||
Reference in New Issue
Block a user