|
| 1 | +# yaml-language-server: $schema=schemas/docker-compose.json |
| 2 | + |
| 3 | +# The Compose file is a YAML file defining a multi-containers based application. |
| 4 | + |
| 5 | +# Documentation: https://github.com/fluencelabs/cli/tree/main/docs/configs/docker-compose.md |
| 6 | + |
| 7 | +version: "3" |
| 8 | + |
| 9 | +volumes: |
| 10 | + ipfs: null |
| 11 | + nox-0: null |
| 12 | + nox-1: null |
| 13 | + nox-2: null |
| 14 | + |
| 15 | +secrets: |
| 16 | + nox-0: |
| 17 | + file: secrets/nox-0.txt |
| 18 | + nox-1: |
| 19 | + file: secrets/nox-1.txt |
| 20 | + nox-2: |
| 21 | + file: secrets/nox-2.txt |
| 22 | + |
| 23 | +services: |
| 24 | + ipfs: |
| 25 | + image: ipfs/kubo |
| 26 | + ports: |
| 27 | + - 5001:5001 |
| 28 | + - 4001:4001 |
| 29 | + environment: |
| 30 | + IPFS_PROFILE: server |
| 31 | + volumes: |
| 32 | + - ipfs:/data/ipfs |
| 33 | + healthcheck: |
| 34 | + test: ipfs id || exit 1 |
| 35 | + interval: 8s |
| 36 | + timeout: 10s |
| 37 | + retries: 20 |
| 38 | + nox-0: |
| 39 | + image: docker.fluence.dev/nox:feat-vm-425-aquavm-mem-limits-from-config-2_5056_1 |
| 40 | + ports: |
| 41 | + - 7771:7771 |
| 42 | + - 9991:9991 |
| 43 | + environment: |
| 44 | + WASM_LOG: debug |
| 45 | + FLUENCE_MAX_SPELL_PARTICLE_TTL: 9s |
| 46 | + FLUENCE_ROOT_KEY_PAIR__PATH: /run/secrets/nox-0 |
| 47 | + RUST_LOG: chain_connector=debug,run-console=trace,aquamarine::log=debug,network=trace,worker_inactive=trace |
| 48 | + command: |
| 49 | + - --config=/run/configs/nox-0_Config.toml |
| 50 | + - --dev-mode |
| 51 | + - --external-maddrs |
| 52 | + - /dns4/nox-0/tcp/7771 |
| 53 | + - /dns4/nox-0/tcp/9991/ws |
| 54 | + - --allow-private-ips |
| 55 | + - --local |
| 56 | + depends_on: |
| 57 | + ipfs: |
| 58 | + condition: service_healthy |
| 59 | + volumes: |
| 60 | + - ./configs/nox-0_Config.toml:/run/configs/nox-0_Config.toml |
| 61 | + - nox-0:/.fluence |
| 62 | + secrets: |
| 63 | + - nox-0 |
| 64 | + healthcheck: |
| 65 | + test: curl -f http://localhost:18080/health |
| 66 | + interval: 5s |
| 67 | + timeout: 2s |
| 68 | + retries: 10 |
| 69 | + nox-1: |
| 70 | + image: docker.fluence.dev/nox:feat-vm-425-aquavm-mem-limits-from-config-2_5056_1 |
| 71 | + ports: |
| 72 | + - 7772:7772 |
| 73 | + - 9992:9992 |
| 74 | + environment: |
| 75 | + WASM_LOG: debug |
| 76 | + FLUENCE_MAX_SPELL_PARTICLE_TTL: 9s |
| 77 | + FLUENCE_ROOT_KEY_PAIR__PATH: /run/secrets/nox-1 |
| 78 | + RUST_LOG: chain_connector=debug,run-console=trace,aquamarine::log=debug,network=trace,worker_inactive=trace |
| 79 | + command: |
| 80 | + - --config=/run/configs/nox-1_Config.toml |
| 81 | + - --external-maddrs |
| 82 | + - /dns4/nox-1/tcp/7772 |
| 83 | + - /dns4/nox-1/tcp/9992/ws |
| 84 | + - --allow-private-ips |
| 85 | + - --bootstraps=/dns/nox-0/tcp/7771 |
| 86 | + depends_on: |
| 87 | + ipfs: |
| 88 | + condition: service_healthy |
| 89 | + volumes: |
| 90 | + - ./configs/nox-1_Config.toml:/run/configs/nox-1_Config.toml |
| 91 | + - nox-1:/.fluence |
| 92 | + secrets: |
| 93 | + - nox-1 |
| 94 | + healthcheck: |
| 95 | + test: curl -f http://localhost:18080/health |
| 96 | + interval: 5s |
| 97 | + timeout: 2s |
| 98 | + retries: 10 |
| 99 | + nox-2: |
| 100 | + image: docker.fluence.dev/nox:feat-vm-425-aquavm-mem-limits-from-config-2_5056_1 |
| 101 | + ports: |
| 102 | + - 7773:7773 |
| 103 | + - 9993:9993 |
| 104 | + environment: |
| 105 | + WASM_LOG: debug |
| 106 | + FLUENCE_MAX_SPELL_PARTICLE_TTL: 9s |
| 107 | + FLUENCE_ROOT_KEY_PAIR__PATH: /run/secrets/nox-2 |
| 108 | + RUST_LOG: chain_connector=debug,run-console=trace,aquamarine::log=debug,network=trace,worker_inactive=trace |
| 109 | + command: |
| 110 | + - --config=/run/configs/nox-2_Config.toml |
| 111 | + - --dev-mode |
| 112 | + - --external-maddrs |
| 113 | + - /dns4/nox-2/tcp/7773 |
| 114 | + - /dns4/nox-2/tcp/9993/ws |
| 115 | + - --allow-private-ips |
| 116 | + - --bootstraps=/dns/nox-0/tcp/7771 |
| 117 | + depends_on: |
| 118 | + ipfs: |
| 119 | + condition: service_healthy |
| 120 | + volumes: |
| 121 | + - ./configs/nox-2_Config.toml:/run/configs/nox-2_Config.toml |
| 122 | + - nox-2:/.fluence |
| 123 | + secrets: |
| 124 | + - nox-2 |
| 125 | + healthcheck: |
| 126 | + test: curl -f http://localhost:18080/health |
| 127 | + interval: 5s |
| 128 | + timeout: 2s |
| 129 | + retries: 10 |
0 commit comments