|
| 1 | +version: "3.4" |
| 2 | + |
| 3 | +# docker run -t --name storagebroker --net=host \ |
| 4 | +#--entrypoint "storage_broker" \ |
| 5 | +#perconalab/neon:latest -l 0.0.0.0:50051 |
| 6 | +#``` |
| 7 | +# |
| 8 | +#2. Deploy safekeeper (or several of them for redundancy) |
| 9 | +# |
| 10 | +#```shell |
| 11 | +#docker run -t --name safekeeper1 --net=host \ |
| 12 | +#--entrypoint "safekeeper" \ |
| 13 | +#perconalab/neon:latest \ |
| 14 | +#--id=1 -D /data --broker-endpoint=http://172.16.0.9:50051 \ |
| 15 | +#-l 0.0.0.0:5454 --listen-http=0.0.0.0:7676 |
| 16 | +# |
| 17 | + |
| 18 | + |
| 19 | +# docker run -d -t --name pageserver --net=host |
| 20 | +#--entrypoint "pageserver" |
| 21 | +#perconalab/neon:latest |
| 22 | +#-D /data -c "id=1" -c "broker_endpoint='http://172.16.0.9:50051'" |
| 23 | +#-c "listen_pg_addr='0.0.0.0:6400'" -c "listen_http_addr='0.0.0.0:9898'" |
| 24 | +#-c "pg_distrib_dir='/opt/neondatabase-neon/pg_install'" |
| 25 | + |
| 26 | +# docker run -d -t --name compute |
| 27 | +#--entrypoint "/compute.sh" |
| 28 | +#-p55432:55432 -e PAGESERVER=172.16.0.9 |
| 29 | +#-e SAFEKEEPERS=172.16.0.9:5454 perconalab/neon:latest |
| 30 | + |
| 31 | +services: |
| 32 | + storage-broker: |
| 33 | + image: perconalab/neon:latest |
| 34 | + entrypoint: storage_broker |
| 35 | + command: |
| 36 | + - -l |
| 37 | + - 0.0.0.0:50051 |
| 38 | + |
| 39 | + safe-keeper: |
| 40 | + image: perconalab/neon:latest |
| 41 | + entrypoint: safekeeper |
| 42 | + command: |
| 43 | + - --id=1 |
| 44 | + - -D |
| 45 | + - /data |
| 46 | + - --broker-endpoint=http://storage-broker:50051 |
| 47 | + - -l |
| 48 | + - localhost:5454 |
| 49 | + - --listen-http=0.0.0.0:7676 |
| 50 | + depends_on: |
| 51 | + - storage-broker |
| 52 | + |
| 53 | + page-server: |
| 54 | + image: perconalab/neon:latest |
| 55 | + entrypoint: pageserver |
| 56 | + command: |
| 57 | + - -D |
| 58 | + - /data |
| 59 | + - -c |
| 60 | + - id=1 |
| 61 | + - -c |
| 62 | + - "broker_endpoint='http://storage-broker:50051'" |
| 63 | + - -c |
| 64 | + - "listen_pg_addr='0.0.0.0:6400'" |
| 65 | + - -c |
| 66 | + - "listen_http_addr='0.0.0.0:9898'" |
| 67 | + - -c |
| 68 | + - "pg_distrib_dir='/opt/neondatabase-neon/pg_install'" |
| 69 | + depends_on: |
| 70 | + - storage-broker |
| 71 | + |
| 72 | + compute: |
| 73 | + image: perconalab/neon:latest |
| 74 | + entrypoint: /compute.sh |
| 75 | + command: |
| 76 | + - -e |
| 77 | + - PAGESERVER=page-server |
| 78 | + - -e |
| 79 | + - SAFEKEEPERS=safe-keeper:5454 |
| 80 | + depends_on: |
| 81 | + - page-server |
| 82 | + - safe-keeper |
| 83 | + ports: |
| 84 | + - 55432:55432 |
0 commit comments