-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
137 lines (127 loc) · 3.26 KB
/
docker-compose.yml
File metadata and controls
137 lines (127 loc) · 3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
services:
# TODO: Future implementation
# frontend:
# # image: frontend:latest TODO
# build:
# context: ./frontend
# dockerfile: Dockerfile
# ports:
# - "3000:3000"
# networks:
# - default_network
# api_gateway:
# # image: api_gateway:latest TODO
# build:
# context: ./api_gateway
# dockerfile: Dockerfile
# ports:
# - "8080:8080"
# depends_on:
# keycloak:
# condition: service_healthy
# frontend:
# condition: service_healthy
# networks:
# - default_network
# # restart: always TODO: da attivare quando gateway è pronto
# crm:
# # image: crm:latest TODO
# build:
# context: ./crm
# dockerfile: Dockerfile
# ports:
# - "8081:8080"
# depends_on:
# - keycloak
# - postgres_crm
# networks:
# - default_network
# com_manager:
# # image: com_manager:latest TODO
# build:
# context: ./com_manager
# dockerfile: Dockerfile
# ports:
# - "8082:8080"
# environment:
# GMAIL_CLIENT_SECRET: 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
# GMAIL_CLIENT_ID: 827084036884-ct4a9hh5crjgjsa6nq8e9suoa8ld1l7h.apps.googleusercontent.com
# GMAIL_APPLICATION_NAME: webappii-lab04
# GMAIL_REFRESH_TOKEN: 1//04fXB15ALhHIWCgYIARAAGAQSNwF-L9IrHrhueUGlDH3_gdCO9w6NtQaM3SlpV9jrKLS8v-ejgEssiRi4reEUxt_kec2rzAce8lc
# depends_on:
# - keycloak
# networks:
# - default_network
# document_store:
# # image: document_store:latest TODO
# build:
# context: ./document_store
# dockerfile: Dockerfile
# ports:
# - "8083:8080"
# depends_on:
# - keycloak
# - postgres_ds
# networks:
# - default_network
keycloak:
image: keycloak/keycloak
ports:
- '9090:8080'
environment :
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: password
volumes:
- ./keycloak-config.json:/opt/keycloak/data/import/realms.json
command: start-dev --import-realm
networks:
- default_network
healthcheck:
test: [ "CMD-SHELL", "curl -f http://localhost:8080/realms/master || exit 1" ]
interval: 30s
timeout: 10s
retries: 5
postgres_ds:
image: 'postgres:latest'
environment:
POSTGRES_DB: ds_database
POSTGRES_PASSWORD: ds_secret
POSTGRES_USER: ds_user
ports:
- '5432:5432'
networks:
- default_network
postgres_crm:
image: 'postgres:latest'
environment:
POSTGRES_DB: crm_database
POSTGRES_PASSWORD: crm_secret
POSTGRES_USER: crm_user
ports:
- '5433:5432'
networks:
- default_network
zookeeper:
image: 'confluentinc/cp-zookeeper:latest'
platform: linux/arm64
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- '2181:2181'
kafka:
image: 'confluentinc/cp-kafka:latest'
platform: linux/arm64
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_CREATE_TOPICS: "test-topic:1:1"
depends_on:
- zookeeper
ports:
- '9092:9092'
networks:
default_network:
driver: bridge