105 lines
2.3 KiB
YAML
105 lines
2.3 KiB
YAML
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 |