Skip to content

Commit

Permalink
fix quickstart compose setup for WSL (#604)
Browse files Browse the repository at this point in the history
* add ipam configs for networks
* add blank sample files

grafana wants to create these on startup but can't write into mounted
hosts filesystem. you get a permission denied.

* update host entry
  • Loading branch information
ekneg54 authored Jun 11, 2024
1 parent 9418851 commit 70ce33a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
42 changes: 33 additions & 9 deletions quickstart/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ services:
test:
[
"CMD-SHELL",
"kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --topic consumer --describe"
"kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --topic consumer --describe",
]
networks:
- kafka
kafka-exporter:
image: bitnami/kafka-exporter
container_name: kafkaexporter
command: [ "--kafka.server=kafka:9092" ]
command: ["--kafka.server=kafka:9092"]
ports:
- "9308:9308"
depends_on:
Expand Down Expand Up @@ -101,7 +101,7 @@ services:
volumes:
- ../quickstart/:/home/logprep/quickstart/
tmpfs:
- /tmp/logprep/prometheus_multiproc
- /tmp/logprep/prometheus_multiproc
entrypoint:
- logprep
- run
Expand All @@ -128,7 +128,7 @@ services:
- prometheus
extra_hosts:
# enables prometheus to access the host system (eg when logprep is running locally in the terminal)
- "host.docker.internal:172.17.0.1"
- "host.docker.internal:192.168.223.41"
config:
image: nginx:latest
container_name: config
Expand Down Expand Up @@ -281,9 +281,9 @@ services:
WEB_CONCURRENCY: 4
SECURE_SSL_REDIRECT: "False"
UCL_BASE_URL: http://localhost:8000/api/v1
DJANGO_SECRET_KEY: 'django-insecure-secret_key'
DJANGO_SECRET_KEY: "django-insecure-secret_key"
ALLOWED_HOSTS: "*"
CORS_ALLOWED_ORIGINS: http://localhost # neccessary if CORS_ORIGIN_ALLOW_ALL=FALSE
CORS_ALLOWED_ORIGINS: http://localhost # neccessary if CORS_ORIGIN_ALLOW_ALL=FALSE
CORS_ORIGIN_ALLOW_ALL: "True"
DJANGO_DEBUG: "True"
KEYCLOAK_SERVER_URL: http://keycloak:8080
Expand All @@ -298,7 +298,7 @@ services:
ucl-db:
condition: service_healthy
entrypoint:
- ./docker/docker-entrypoint.sh
- ./docker/docker-entrypoint.sh
security_opt:
- no-new-privileges:true
tmpfs:
Expand All @@ -308,7 +308,7 @@ services:
- keycloak
ucl-db:
container_name: ucl-db
image: 'postgres:14'
image: "postgres:14"
read_only: true
volumes:
- ucl-db-volume:/var/lib/postgresql/data
Expand All @@ -317,7 +317,7 @@ services:
POSTGRES_PASSWORD: ucl
POSTGRES_DB: ucl
healthcheck:
test: 'pg_isready --username=$$POSTGRES_USER && psql --username=$$POSTGRES_USER --list'
test: "pg_isready --username=$$POSTGRES_USER && psql --username=$$POSTGRES_USER --list"
interval: 8s
timeout: 5s
retries: 10
Expand Down Expand Up @@ -351,8 +351,32 @@ volumes:

networks:
opensearch:
ipam:
config:
- subnet: 192.168.223.0/29
gateway: 192.168.223.1
fda:
ipam:
config:
- subnet: 192.168.223.8/29
gateway: 192.168.223.9
ucl:
ipam:
config:
- subnet: 192.168.223.16/29
gateway: 192.168.223.17
keycloak:
ipam:
config:
- subnet: 192.168.223.24/29
gateway: 192.168.223.25
kafka:
ipam:
config:
- subnet: 192.168.223.32/29
gateway: 192.168.223.33
prometheus:
ipam:
config:
- subnet: 192.168.223.40/29
gateway: 192.168.223.41
Empty file.
Empty file.

0 comments on commit 70ce33a

Please sign in to comment.