docker-compose.yml 2.93 KB
Newer Older
1
2
3
version: "3.8"
services:

4
5
6
7
8
  clea-ws-rest:
    image: clea-ws-rest
    build: ../clea-ws-rest/
    environment:
      SPRING_PROFILES_ACTIVE: dev,docker
9
10
      CLEA_WS_REST_LOG_FILE_PATH: /logs
      CLEA_WS_REST_LOG_FILE_NAME: clea-ws-rest
11
12
    depends_on:
      - kafka
13
    ports:
14
      - "8080:8080"
15
16
    networks:
      - clea-network
17
    restart: always
18

19
20
21
  clea-venue-consumer:
    image: clea-venue-consumer
    build: ../clea-venue-consumer/
22
    environment:
23
24
      SPRING_PROFILES_ACTIVE: dev,docker
      SPRING_JPA_HIBERNATE_DDL_AUTO: none
25
26
      CLEA_VENUE_CONSUMER_LOG_FILE_PATH: /logs
      CLEA_VENUE_CONSUMER_LOG_FILE_NAME: clea-venue-consumer
27
28
29
    depends_on:
      - postgres
      - kafka
30
    ports:
31
      - "7070:8080"
32
33
    networks:
      - clea-network
34
    restart: always
35

36
37
38
  clea-batch:
    image: clea-batch:latest
    build: ../clea-batch/
39
    environment:
40
41
      SPRING_PROFILES_ACTIVE: docker
      BUCKET: clea-batch
42
43
      CLEA_BATCH_LOG_FILE_PATH: /logs
      CLEA_BATCH_LOG_FILE_NAME: clea-batch
44
    ports:
45
46
47
      - "15000:15000"
    depends_on:
      - postgres
48
49
    networks:
      - clea-network
50
    restart: "no"
51
52


53
54
  kafka:
    image: "wurstmeister/kafka:latest"
55
    environment:
56
57
58
59
60
61
62
63
64
65
66
67
      KAFKA_INTER_BROKER_LISTENER_NAME: "INTERNAL"
      KAFKA_LISTENERS: "INTERNAL://:29092,EXTERNAL://:9092"
      KAFKA_ADVERTISED_LISTENERS: "INTERNAL://kafka:29092,EXTERNAL://localhost:9092"
      KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT"
      KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
    depends_on:
      - zookeeper
    ports:
      - "9092:9092"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
68
69
    networks:
      - clea-network
70
    restart: always
71
72

  zookeeper:
73
    image: wurstmeister/zookeeper:latest
74
75
76
77
    ports:
      - "2181:2181"
    networks:
      - clea-network
78
    restart: always
79
80
81
82
83

  kafdrop:
    image: "obsidiandynamics/kafdrop:latest"
    environment:
      JVM_OPTS: "-Xms16M -Xmx48M -Xss180K -XX:-TieredCompilation -XX:+UseStringDeduplication -noverify"
84
      KAFKA_BROKERCONNECT: "kafka:29092"
85
86
87
      SERVER_SERVLET_CONTEXTPATH: "/kafdrop"
    depends_on:
      - kafka
88
89
    ports:
      - "9000:9000"
90
91
92
93
    networks:
      - clea-network
    restart: always

94
95
  postgres:
    image: "postgres:latest"
96
    environment:
97
98
99
100
101
102
103
      POSTGRES_DB: cleadb
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: password
    ports:
      - "5432:5432"
    volumes:
      - "./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d"
104
105
    networks:
      - clea-network
106
    restart: always
107

108
109
  pgadmin:
    image: "dpage/pgadmin4:latest"
110
    environment:
111
112
113
      PGADMIN_DEFAULT_EMAIL: user@pgadmin.com
      PGADMIN_DEFAULT_PASSWORD: password
      PGADMIN_LISTEN_PORT: 80
114
115
    depends_on:
      - postgres
116
117
    ports:
      - "8081:80"
118
119
    networks:
      - clea-network
120
121
122
    restart: always
    logging:
      driver: none
123
124
125

networks:
  clea-network:
126
    driver: bridge
127
128
    name: clea-network