Skip to content

Commit

Permalink
chore(docker): fix docker-compose-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed May 18, 2021
1 parent 4e0e267 commit 2d89dc4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
19 changes: 19 additions & 0 deletions application-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
micronaut:
server:
cors:
enabled: true
configurations:
all:
allowedOrigins:
- http://localhost:3000

akhq:
connections:
local:
properties:
bootstrap.servers: "kafka:9092"
schema-registry:
url: "http://schema-registry:8085"
connect:
- name: "connect"
url: "http://connect:8083"
17 changes: 9 additions & 8 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ volumes:

services:
akhq:
image: gradle:6.6.1-jdk11
command: 'gradle run --continuous'
image: gradle:7-jdk11
command: 'gradle run -x installFrontend -x assembleFrontend -t'
working_dir: /app
volumes:
- ./:/app:z
- ./:/app:Z
- ./application-dev.yml:/tmp/application.dev.yml:Z
- ./gradle/gradle.properties:/root/.gradle/gradle.properties:Z
ports:
- 8080:8080
environment:
MICRONAUT_IO_WATCH_RESTART: 'true'
MICRONAUT_CONFIG_FILES: '/app/application.dev.yml'
MICRONAUT_CONFIG_FILES: '/tmp/application.dev.yml'
depends_on:
- kafka
- schema-registry
Expand All @@ -38,6 +38,8 @@ services:
- ./:/app:z
- ui-modules:/app/client/node_modules:Z
- ui-build:/app/client/build:Z
environment:
REACT_APP_BASE_URL: "http://localhost:8080"
ports:
- 3000:3000
depends_on:
Expand Down Expand Up @@ -92,8 +94,6 @@ services:

connect:
image: confluentinc/cp-kafka-connect
ports:
- 8083:8083
depends_on:
- kafka
- schema-registry
Expand All @@ -118,4 +118,5 @@ services:
CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR: '1'
CONNECT_STATUS_STORAGE_REPLICATION_FACTOR: '1'
CONNECT_PLUGIN_PATH: ' /usr/share/java/'

ports:
- 8083:8083

0 comments on commit 2d89dc4

Please sign in to comment.