Created
June 30, 2020 21:35
-
-
Save marcelo-ochoa/71d64f5c8869a7b4cac82df171efd1ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
x-default-opts: | |
&default-opts | |
logging: | |
options: | |
max-size: "1m" | |
deploy: | |
mode: replicated | |
replicas: 1 | |
restart_policy: | |
condition: any | |
max_attempts: 3 | |
window: 120s | |
networks: | |
- mycorp | |
volumes: | |
- kvroot:/kvroot | |
- data:/data | |
services: | |
master-1: | |
<<: *default-opts | |
image: oracle-nosql/net | |
hostname: master-1 | |
ports: | |
- "5000:5000" | |
- "5001:5001" | |
environment: | |
- NODE_TYPE=m | |
- MASTER_NODE=master-1 | |
slave-1: | |
<<: *default-opts | |
image: oracle-nosql/net | |
hostname: slave-1 | |
environment: | |
- NODE_TYPE=s | |
- MASTER_NODE=master-1 | |
slave-2: | |
<<: *default-opts | |
image: oracle-nosql/net | |
hostname: slave-2 | |
environment: | |
- NODE_TYPE=s | |
- MASTER_NODE=master-1 | |
networks: | |
mycorp: | |
volumes: | |
data: {} | |
kvroot: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment