Skip to content

Commit 89379a6

Browse files
chore: update docker-compose files with modernized images and healthchecks
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2220ff3 commit 89379a6

10 files changed

Lines changed: 68 additions & 36 deletions

File tree

aws/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
opencodeco-aws:
33
container_name: opencodeco-aws
4-
image: localstack/localstack:2.2.0
4+
image: localstack/localstack:4.14.0
55
ports:
66
- ${AWS_PORT}:4566
77

hyperdx/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
opencodeco-hyperx:
33
container_name: opencodeco-hyperx
4-
image: hyperdx/hyperdx-local
4+
image: hyperdx/hyperdx-local:2.23.2
55
ports:
66
- ${HYPERDX_API_PORT}:8000
77
- ${HYPERDX_APP_PORT}:8080

kafka/docker-compose.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
11
services:
22
opencodeco-kafka:
33
container_name: opencodeco-kafka
4-
image: bitnami/kafka:3.5
4+
image: apache/kafka:3.9.0
55
ports:
66
- ${KAFKA_PORT}:9092
77
volumes:
8-
- opencodeco-kafka:/bitnami
8+
- opencodeco-kafka:/var/lib/kafka/data
99
environment:
10-
- KAFKA_CFG_NODE_ID=0
11-
- KAFKA_CFG_PROCESS_ROLES=controller,broker
12-
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093
13-
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
14-
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@opencodeco-kafka:9093
15-
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
10+
- KAFKA_NODE_ID=1
11+
- KAFKA_PROCESS_ROLES=broker,controller
12+
- KAFKA_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093
13+
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://opencodeco-kafka:9092
14+
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
15+
- KAFKA_CONTROLLER_QUORUM_VOTERS=1@opencodeco-kafka:9093
16+
- KAFKA_CONTROLLER_LISTENER_NAMES=CONTROLLER
17+
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
18+
- KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR=1
19+
- KAFKA_TRANSACTION_STATE_LOG_MIN_ISR=1
20+
healthcheck:
21+
test: ["CMD-SHELL", "/opt/kafka/bin/kafka-broker-api-versions.sh --bootstrap-server localhost:9092 > /dev/null 2>&1"]
22+
interval: 15s
23+
timeout: 10s
24+
retries: 5
1625

1726
opencodeco-kafka-ui:
1827
container_name: opencodeco-kafka-ui
19-
image: provectuslabs/kafka-ui:latest
28+
image: ghcr.io/kafbat/kafka-ui:v1.4.2
2029
ports:
2130
- ${KAFKA_UI_PORT}:8080
2231
depends_on:
23-
- opencodeco-kafka
32+
opencodeco-kafka:
33+
condition: service_healthy
2434
environment:
2535
DYNAMIC_CONFIG_ENABLED: 'true'
2636
volumes:

mongo/docker-compose.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
services:
22
opencodeco-mongo:
33
container_name: opencodeco-mongo
4-
image: mongo:6.0
4+
image: mongo:8.0
55
ports:
66
- ${MONGO_PORT}:27017
77
volumes:
88
- opencodeco-mongo:/data/db
9+
healthcheck:
10+
test: ["CMD", "mongosh", "--eval", "db.runCommand('ping').ok", "--quiet"]
11+
interval: 10s
12+
timeout: 5s
13+
retries: 5
914

1015
opencodeco-mongo-express:
1116
container_name: opencodeco-mongo-express
12-
image: mongo-express:1.0.0-alpha
17+
image: mongo-express:1.0.2
1318
ports:
1419
- ${MONGO_EXPRESS_PORT}:8081
1520
environment:
1621
ME_CONFIG_MONGODB_URL: mongodb://opencodeco-mongo:27017/
1722
depends_on:
18-
- opencodeco-mongo
23+
opencodeco-mongo:
24+
condition: service_healthy
1925

2026
networks:
2127
default:

mysql/docker-compose.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
services:
22
opencodeco-mysql:
33
container_name: opencodeco-mysql
4-
image: mysql:8.1
5-
command: --default-authentication-plugin=mysql_native_password
4+
image: mysql:9.3
65
ports:
76
- ${MYSQL_PORT}:3306
87
environment:
98
MYSQL_ROOT_PASSWORD: opencodeco
109
volumes:
1110
- opencodeco-mysql:/var/lib/mysql
11+
healthcheck:
12+
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-popencodeco"]
13+
interval: 10s
14+
timeout: 5s
15+
retries: 5
1216

1317
opencodeco-phpmyadmin:
1418
container_name: opencodeco-phpmyadmin
@@ -17,6 +21,9 @@ services:
1721
- ${PHPMYADMIN_PORT}:80
1822
environment:
1923
- PMA_HOST=opencodeco-mysql
24+
depends_on:
25+
opencodeco-mysql:
26+
condition: service_healthy
2027

2128
networks:
2229
default:

o11y/docker-compose.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
services:
22
opencodeco-otelcol:
33
container_name: opencodeco-otelcol
4-
image: otel/opentelemetry-collector-contrib:0.95.0
4+
image: otel/opentelemetry-collector-contrib:0.123.0
55
volumes:
66
- ./otelcol-config.yml:/etc/otelcol-contrib/config.yaml
77
ports:
8-
- ${JAEGER_HTTP_PORT}:14268
9-
- ${JAEGER_UDP_PORT}:6832/udp
108
- ${STATSD_PORT}:8125/udp
119
- ${OTLP_GRPC_PORT}:4317
1210
- ${OTLP_HTTP_PORT}:4318
1311

1412
opencodeco-jaeger:
1513
container_name: opencodeco-jaeger
16-
image: jaegertracing/all-in-one:1.54
14+
image: jaegertracing/all-in-one:1.76.0
1715
ports:
1816
- ${JAEGER_UI_PORT}:16686
1917

2018
opencodeco-prometheus:
2119
container_name: opencodeco-prometheus
22-
image: prom/prometheus:v2.46.0
20+
image: prom/prometheus:v3.3.0
2321
volumes:
2422
- ./prometheus.yml:/etc/prometheus/prometheus.yml
2523
ports:
2624
- ${PROMETHEUS_PORT}:9090
2725

2826
opencodeco-grafana:
2927
container_name: opencodeco-grafana
30-
image: grafana/grafana:10.0.3
28+
image: grafana/grafana:11.6.0
3129
ports:
3230
- ${GRAFANA_PORT}:3000
3331
volumes:

o11y/otelcol-config.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
receivers:
2-
jaeger:
3-
protocols:
4-
thrift_http:
5-
thrift_binary:
62
statsd:
73
endpoint: 0.0.0.0:8125
84
is_monotonic_counter: true
@@ -27,7 +23,7 @@ service:
2723
level: "debug"
2824
pipelines:
2925
traces:
30-
receivers: [otlp, jaeger]
26+
receivers: [otlp]
3127
exporters: [debug, otlp/jaeger]
3228
metrics:
3329
receivers: [otlp, statsd]

postgres/docker-compose.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
1-
version: '3'
21
services:
32
opencodeco-postgres:
43
container_name: opencodeco-postgres
5-
image: postgres:latest
4+
image: postgres:17.4
65
restart: always
76
ports:
87
- ${POSTGRES_PORT}:5432
98
environment:
109
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
1110
volumes:
1211
- opencodeco-postgres:/var/lib/postgresql
12+
healthcheck:
13+
test: ["CMD-SHELL", "pg_isready -U postgres"]
14+
interval: 10s
15+
timeout: 5s
16+
retries: 5
1317

1418
opencodeco-pgadmin:
1519
container_name: opencodeco-pgadmin
16-
image: dpage/pgadmin4:latest
20+
image: dpage/pgadmin4:9.2
1721
ports:
1822
- ${PGADMIN_PORT}:80
1923
environment:
2024
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_EMAIL}
2125
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD}
2226
depends_on:
23-
- opencodeco-postgres
27+
opencodeco-postgres:
28+
condition: service_healthy
2429

2530
networks:
2631
default:

rabbitmq/docker-compose.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
opencodeco-rabbitmq:
33
container_name: opencodeco-rabbitmq
4-
image: rabbitmq:3-management-alpine
4+
image: rabbitmq:4.1-management-alpine
55
ports:
66
- ${RABBITMQ_PORT}:5672
77
- ${RABBITMQ_UI_PORT}:15672
@@ -10,6 +10,11 @@ services:
1010
RABBITMQ_DEFAULT_PASS: opencodeco
1111
volumes:
1212
- opencodeco-rabbitmq:/var/lib/rabbitmq
13+
healthcheck:
14+
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
15+
interval: 10s
16+
timeout: 5s
17+
retries: 5
1318

1419
networks:
1520
default:

redis/docker-compose.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
services:
22
opencodeco-redis:
33
container_name: opencodeco-redis
4-
image: redis:7.0
4+
image: redis:7.4
55
ports:
66
- ${REDIS_PORT}:6379
7+
healthcheck:
8+
test: ["CMD", "redis-cli", "ping"]
9+
interval: 10s
10+
timeout: 5s
11+
retries: 5
712

813
opencodeco-redisinsight:
914
container_name: opencodeco-redisinsight
10-
image: redislabs/redisinsight:1.14.0
15+
image: redis/redisinsight:3.2.0
1116
ports:
12-
- ${REDISINSIGHT_PORT}:8001
17+
- ${REDISINSIGHT_PORT}:5540
1318

1419
networks:
1520
default:

0 commit comments

Comments
 (0)