From c272d33232195246240184635d94bdf48faa311d Mon Sep 17 00:00:00 2001 From: Jeongkyu Shin Date: Wed, 3 Jul 2024 14:29:48 +0900 Subject: [PATCH] update: halfstack packages to point latest stable versions --- changes/2367.update.md | 1 + docker-compose.halfstack-2409.yml | 71 +++++++++++++++++++ docker-compose.halfstack-main.yml | 2 +- .../install-from-package/prepare-database.rst | 2 +- 4 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 changes/2367.update.md create mode 100644 docker-compose.halfstack-2409.yml diff --git a/changes/2367.update.md b/changes/2367.update.md new file mode 100644 index 00000000000..683c4fe57cb --- /dev/null +++ b/changes/2367.update.md @@ -0,0 +1 @@ +Update halfstack packages to point latest stable versions \ No newline at end of file diff --git a/docker-compose.halfstack-2409.yml b/docker-compose.halfstack-2409.yml new file mode 100644 index 00000000000..142e70be65e --- /dev/null +++ b/docker-compose.halfstack-2409.yml @@ -0,0 +1,71 @@ +version: "2.4" + +services: + + backendai-half-db: + image: postgres:16.3-alpine + restart: unless-stopped + command: postgres -c 'max_connections=256' + networks: + - half + ports: + - "8100:5432" + environment: + - POSTGRES_PASSWORD=develove + - POSTGRES_DB=backend + volumes: + - "./volumes/${DATADIR_PREFIX:-.}/postgres-data:/var/lib/postgresql/data:rw" + healthcheck: + test: ["CMD", "pg_isready", "-U", "postgres"] + interval: 5s + timeout: 3s + retries: 10 + + backendai-half-redis: + image: redis:7.2.4-alpine + restart: unless-stopped + networks: + - half + ports: + - "8110:6379" + volumes: + - "./volumes/${DATADIR_PREFIX:-.}/redis-data:/data:rw" + command: > + redis-server + --appendonly yes + healthcheck: + test: ["CMD-SHELL", "redis-cli ping | grep PONG"] + interval: 5s + timeout: 3s + retries: 10 + + backendai-half-etcd: + image: quay.io/coreos/etcd:v3.5.6 + restart: unless-stopped + volumes: + - "./volumes/${DATADIR_PREFIX:-.}/etcd-data:/etcd-data:rw" + networks: + - half + ports: + - "8120:2379" + command: > + /usr/local/bin/etcd + --name backendai-etcd + --data-dir /etcd-data + --listen-client-urls http://0.0.0.0:2379 + --advertise-client-urls http://0.0.0.0:2379 + --listen-peer-urls http://0.0.0.0:2380 + --initial-advertise-peer-urls http://0.0.0.0:2380 + --initial-cluster backendai-etcd=http://0.0.0.0:2380 + --initial-cluster-token backendai-etcd-token + --initial-cluster-state new + --enable-v2=true + --auto-compaction-retention 1 + healthcheck: + test: ["CMD", "etcdctl", "endpoint", "health"] + interval: 5s + timeout: 3s + retries: 10 + +networks: + half: diff --git a/docker-compose.halfstack-main.yml b/docker-compose.halfstack-main.yml index 747569b752b..d7c00a40505 120000 --- a/docker-compose.halfstack-main.yml +++ b/docker-compose.halfstack-main.yml @@ -1 +1 @@ -docker-compose.halfstack-2303.yml \ No newline at end of file +./docker-compose.halfstack-2409.yml \ No newline at end of file diff --git a/docs/install/install-from-package/prepare-database.rst b/docs/install/install-from-package/prepare-database.rst index a4678064543..ed42ba4b0fd 100644 --- a/docs/install/install-from-package/prepare-database.rst +++ b/docs/install/install-from-package/prepare-database.rst @@ -21,7 +21,7 @@ refer services: backendai-pg-active: <<: *base - image: postgres:15.1-alpine + image: postgres:16.3-alpine restart: unless-stopped command: > postgres