This commit is contained in:
jze9
2025-04-01 23:27:36 +05:00
commit 4c72b79e86
49 changed files with 19305 additions and 0 deletions

105
docker-compose.yml Normal file
View File

@@ -0,0 +1,105 @@
services:
#app:
# build:
# context: .
# dockerfile: ./app/dockerfile
# container_name: app
# ports:
# - "80:80"
# networks:
# - backend
# depends_on:
# - redis
# - postgres
#service:
# image: copp:service-login-latest
# container_name: login
# #restart: always
# networks:
# - backend
# depends_on:
# - kafka
# build:
# context: .
# dockerfile: ./server/service-login/dockerfile
#
#navicat-monitor:
# image: navicat/navicatmonitor:3.1.2
# container_name: navicat-monitor
# ports:
# - "3000:3000"
# networks:
# - backend
# environment:
# - NAVICAT_MONITOR_DB_HOST=postgres
# - NAVICAT_MONITOR_DB_PORT=5432
# - NAVICAT_MONITOR_DB_USER=postgres
# - NAVICAT_MONITOR_DB_PASSWORD=postgres
#
api:
image: copp:api-lasted
container_name: api
#restart: always
ports:
- "8000:8000"
networks:
- backend
build:
context: .
dockerfile: ./server/api/dockerfile
api_data_base:
image: copp:api-data-base-lasted
container_name: api-data-base
#restart: always
ports:
- "8001:8001"
networks:
- backend
build:
context: .
dockerfile: ./server/api-data-base/dockerfile
#kafka:
# image: 'bitnami/kafka:latest'
# container_name: kafka
# networks:
# - backend
# environment:
# - KAFKA_CFG_NODE_ID=0
# - KAFKA_CFG_PROCESS_ROLES=controller,broker
# - KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093
# - KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
# - KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093
# - KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
#
#
#redis:
# image: 'redis:latest'
# container_name: redis
# networks:
# - backend
# ports:
# - "6379:6379"
postgres:
image: postgres:latest
container_name: postgres
#restart: always
ports:
- "5432:5432"
networks:
- backend
environment:
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./differen/data_base_hesh:/var/lib/postgresql/data
networks:
backend:
driver: bridge
#docker compose -f "docker-compose.yml" up -d --build