-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
189 lines (177 loc) · 7.31 KB
/
docker-compose.yml
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
version: '3.3'
services:
# Eureka server
furrifyws-storage-eureka-server:
image: furrifyws-storage-eureka-server:0.0.1-alpine
restart: always
networks:
- furrifyws-storage
# Gateway
furrifyws-storage-gateway:
image: furrifyws-storage-gateway:0.0.1-alpine
restart: always
networks:
- furrifyws-storage
ports:
- "8080:8080"
environment:
# Eureka
EUREKA_ZONE: "http://furrifyws-storage-eureka-server:8761/eureka"
EUREKA_HOSTNAME: "localhost"
# Artists
furrifyws-storage-artists-mysql:
image: mysql:8.0.28
restart: always
networks:
- furrifyws-storage-artists
environment:
MYSQL_DATABASE: 'furrifyws-storage-artists'
MYSQL_ROOT_PASSWORD: 'change_me'
volumes:
- ./mysql:/var/lib/mysql
furrifyws-storage-artists:
image: furrifyws-storage-artists:0.0.1-alpine
restart: always
networks:
- furrifyws-storage-artists
- furrifyws-storage
volumes:
- /usr/share/nginx/html:/data # Volume mapping to save files to
environment:
FURRIFY_LIMITS_ARTISTS: 1000 # Limit amount of artists per user
KAFKA_CONSUMER_GROUP_ID: "eu-poland-1" # A unique group id for this instance of microservice.
MAX_UPLOAD_FILE_SIZE: "1GB" # Max size of uploaded file
MAX_REQUEST_SIZE: "1GB" # Max size of multipart/form-data request
# Keycloak config
KEYCLOAK_ISSUER_URI: "http://192.168.1.200:6565/realms/furrify-dev"
KEYCLOAK_CLIENT_ID: "furrifyws-storage"
# Database config
DATABASE_DRIVER: "com.mysql.cj.jdbc.Driver" # For PostgreSQL driver use: org.postgresql.Driver
DATABASE_DIALECT: "org.hibernate.dialect.MySQL8Dialect" # For PostgreSQL dialect use: org.hibernate.dialect.PostgreSQLDialect
DATABASE_USERNAME: "root"
DATABASE_PASSWORD: "change_me"
DATABASE_URL: "jdbc:mysql://furrifyws-storage-artists-mysql:3306/furrifyws-storage-artists?serverTimezone=UTC&autoReconnect=true&characterEncoding=utf8&useUnicode=true" # JDBC Connection url
# Kafka config
KAFKA_BOOTSTRAP_SERVERS: "http://192.168.1.200:9092"
KAFKA_SCHEMA_REGISTRY_SERVERS: "http://192.168.1.200:8081"
# Eureka
EUREKA_ZONE: "http://furrifyws-storage-eureka-server:8761/eureka"
# Posts
furrifyws-storage-posts-mysql:
image: mysql:8.0.28
restart: always
networks:
- furrifyws-storage-posts
environment:
MYSQL_DATABASE: 'furrifyws-storage-posts'
MYSQL_ROOT_PASSWORD: 'change_me'
volumes:
- ./mysql:/var/lib/mysql
furrifyws-storage-posts:
image: furrifyws-storage-posts:0.0.1-alpine
restart: always
networks:
- furrifyws-storage-posts
- furrifyws-storage
volumes:
- /usr/share/nginx/html:/data # Volume mapping to save files to
environment:
FURRIFY_LIMITS_POSTS: 10000 # Limit amount of posts per user
FURRIFY_LIMITS_MEDIA: 50000 # Limit amount of media per user
FURRIFY_LIMITS_ATTACHMENTS: 50000 # Limit amount of attachments per user
KAFKA_CONSUMER_GROUP_ID: "eu-poland-1" # A unique group id for this instance of microservice.
MAX_UPLOAD_FILE_SIZE: "10GB" # Max size of uploaded file
MAX_REQUEST_SIZE: "10GB" # Max size of multipart/form-data request
# Keycloak config
KEYCLOAK_ISSUER_URI: "http://192.168.1.200:6565/realms/furrify-dev"
KEYCLOAK_CLIENT_ID: "furrifyws-storage"
# Database config
DATABASE_DRIVER: "com.mysql.cj.jdbc.Driver" # For PostgreSQL driver use: org.postgresql.Driver
DATABASE_DIALECT: "org.hibernate.dialect.MySQL8Dialect" # For PostgreSQL dialect use: org.hibernate.dialect.PostgreSQLDialect
DATABASE_USERNAME: "root"
DATABASE_PASSWORD: "change_me"
DATABASE_URL: "jdbc:mysql://furrifyws-storage-posts-mysql:3306/furrifyws-storage-posts?serverTimezone=UTC&autoReconnect=true&characterEncoding=utf8&useUnicode=true" # JDBC Connection url
# Kafka config
KAFKA_BOOTSTRAP_SERVERS: "http://192.168.1.200:9092"
KAFKA_SCHEMA_REGISTRY_SERVERS: "http://192.168.1.200:8081"
# Eureka
EUREKA_ZONE: "http://furrifyws-storage-eureka-server:8761/eureka"
# Sources
furrifyws-storage-sources-mysql:
image: mysql:8.0.28
restart: always
networks:
- furrifyws-storage-sources
environment:
MYSQL_DATABASE: 'furrifyws-storage-sources'
MYSQL_ROOT_PASSWORD: 'change_me'
volumes:
- ./mysql:/var/lib/mysql
furrifyws-storage-sources:
image: furrifyws-storage-sources:0.0.1-alpine
restart: always
networks:
- furrifyws-storage-sources
- furrifyws-storage
environment:
FURRIFY_LIMITS_SOURCES: 50000 # Limit amount of sources per user
KAFKA_CONSUMER_GROUP_ID: "eu-poland-1" # A unique group id for this instance of microservice.
# Keycloak config
KEYCLOAK_ISSUER_URI: "http://192.168.1.200:6565/realms/furrify-dev"
KEYCLOAK_CLIENT_ID: "furrifyws-storage"
# Database config
DATABASE_DRIVER: "com.mysql.cj.jdbc.Driver" # For PostgreSQL driver use: org.postgresql.Driver
DATABASE_DIALECT: "org.hibernate.dialect.MySQL8Dialect" # For PostgreSQL dialect use: org.hibernate.dialect.PostgreSQLDialect
DATABASE_USERNAME: "root"
DATABASE_PASSWORD: "change_me"
DATABASE_URL: "jdbc:mysql://furrifyws-storage-sources-mysql:3306/furrifyws-storage-sources?serverTimezone=UTC&autoReconnect=true&characterEncoding=utf8&useUnicode=true" # JDBC Connection url
# Kafka config
KAFKA_BOOTSTRAP_SERVERS: "http://192.168.1.200:9092"
KAFKA_SCHEMA_REGISTRY_SERVERS: "http://192.168.1.200:8081"
# Eureka
EUREKA_ZONE: "http://furrifyws-storage-eureka-server:8761/eureka"
# Tags
furrifyws-storage-tags-mysql:
image: mysql:8.0.28
restart: always
networks:
- furrifyws-storage-tags
environment:
MYSQL_DATABASE: 'furrifyws-storage-tags'
MYSQL_ROOT_PASSWORD: 'change_me'
volumes:
- ./mysql:/var/lib/mysql
furrifyws-storage-tags:
image: furrifyws-storage-tags:0.0.1-alpine
restart: always
networks:
- furrifyws-storage-tags
- furrifyws-storage
environment:
FURRIFY_LIMITS_TAGS: 1000 # Limit amount of tags per user
KAFKA_CONSUMER_GROUP_ID: "eu-poland-1" # A unique group id for this instance of microservice.
# Keycloak config
KEYCLOAK_ISSUER_URI: "http://192.168.1.200:6565/realms/furrify-dev"
KEYCLOAK_CLIENT_ID: "furrifyws-storage"
# Database config
DATABASE_DRIVER: "com.mysql.cj.jdbc.Driver" # For PostgreSQL driver use: org.postgresql.Driver
DATABASE_DIALECT: "org.hibernate.dialect.MySQL8Dialect" # For PostgreSQL dialect use: org.hibernate.dialect.PostgreSQLDialect
DATABASE_USERNAME: "root"
DATABASE_PASSWORD: "change_me"
DATABASE_URL: "jdbc:mysql://furrifyws-storage-tags-mysql:3306/furrifyws-storage-tags?serverTimezone=UTC&autoReconnect=true&characterEncoding=utf8&useUnicode=true" # JDBC Connection url
# Kafka config
KAFKA_BOOTSTRAP_SERVERS: "http://192.168.1.200:9092"
KAFKA_SCHEMA_REGISTRY_SERVERS: "http://192.168.1.200:8081"
# Eureka
EUREKA_ZONE: "http://furrifyws-storage-eureka-server:8761/eureka"
networks:
furrifyws-storage-tags:
driver: bridge
furrifyws-storage-sources:
driver: bridge
furrifyws-storage-artists:
driver: bridge
furrifyws-storage-posts:
driver: bridge
furrifyws-storage:
driver: bridge