Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Ervits authored and Artem Ervits committed Oct 10, 2023
1 parent f7716a5 commit 42cc8e4
Showing 1 changed file with 1 addition and 54 deletions.
55 changes: 1 addition & 54 deletions docker-compose-pgcat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,6 @@ version: '3.9'

services:

roach-0:
container_name: roach-0
hostname: roach-0
image: cockroachdb/cockroach:latest-v22.2
command: start --insecure --join=roach-0,roach-1,roach-2 --listen-addr=roach-0:26257 --advertise-addr=roach-0:26257 --max-sql-memory=.25 --cache=.25
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'

roach-1:
container_name: roach-1
hostname: roach-1
image: cockroachdb/cockroach:latest-v22.2
command: start --insecure --join=roach-0,roach-1,roach-2 --listen-addr=roach-1:26257 --advertise-addr=roach-1:26257 --max-sql-memory=.25 --cache=.25
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'

roach-2:
container_name: roach-2
hostname: roach-2
image: cockroachdb/cockroach:latest-v22.2
command: start --insecure --join=roach-0,roach-1,roach-2 --listen-addr=roach-2:26257 --advertise-addr=roach-2:26257 --max-sql-memory=.25 --cache=.25
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'

init:
container_name: init
image: cockroachdb/cockroach:latest-v22.2
command: init --host=roach-0 --insecure
depends_on:
- roach-0

lb:
container_name: lb
hostname: lb
build: haproxy
ports:
- "26000:26000"
- "8080:8080"
- "8081:8081"
depends_on:
- roach-0
- roach-1
- roach-2

pgcat:
container_name: pgcat
hostname: pgcat
Expand All @@ -62,15 +18,6 @@ services:
- lb
restart: always

client:
container_name: client
image: cockroachdb/cockroach:latest-v22.2
entrypoint: ["/usr/bin/tail", "-f", "/dev/null"]
hostname: client
depends_on:
- lb
- pgcat

postgresql:
container_name: postgresql
hostname: postgresql
Expand All @@ -89,7 +36,7 @@ services:
flyway:
container_name: flyway
hostname: flyway
image: flyway/flyway:9.15.2
image: flyway/flyway
entrypoint: ["flyway", "migrate"]
volumes:
- ./postgresql/flyway/sql:/flyway/sql
Expand Down

0 comments on commit 42cc8e4

Please sign in to comment.