File: compose.yml

package info (click to toggle)
python-odmantic 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,488 kB
  • sloc: python: 8,646; sh: 110; javascript: 45; makefile: 34; xml: 13
file content (65 lines) | stat: -rw-r--r-- 1,478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
networks:
  main-net:
    driver: bridge
    ipam:
      config:
        - subnet: "172.16.17.0/24"

x-mongo-base: &mongo-base
  image: "mongo:${VERSION}"
  volumes:
    - ./:/scripts

services:
  router:
    <<: *mongo-base
    command: mongos --configdb config-rs/172.16.17.11:27019 --bind_ip_all
    networks:
      main-net:
        ipv4_address: 172.16.17.10

  configsvr:
    <<: *mongo-base
    command: mongod --configsvr --replSet config-rs #Port 27019
    networks:
      main-net:
        ipv4_address: 172.16.17.11

  shard0a:
    <<: *mongo-base
    command: mongod --replSet shard0 --shardsvr # Port: 27018
    networks:
      main-net:
        ipv4_address: 172.16.17.20
  shard0b:
    <<: *mongo-base
    command: mongod --replSet shard0 --shardsvr # Port: 27018
    networks:
      main-net:
        ipv4_address: 172.16.17.21

  shard1a:
    <<: *mongo-base
    command: mongod --replSet shard1 --shardsvr # Port: 27018
    networks:
      main-net:
        ipv4_address: 172.16.17.30
  shard1b:
    <<: *mongo-base
    command: mongod --replSet shard1 --shardsvr # Port: 27018
    networks:
      main-net:
        ipv4_address: 172.16.17.31

  shard2a:
    <<: *mongo-base
    command: mongod --replSet shard2 --shardsvr # Port: 27018
    networks:
      main-net:
        ipv4_address: 172.16.17.40
  shard2b:
    <<: *mongo-base
    command: mongod --replSet shard2 --shardsvr # Port: 27018
    networks:
      main-net:
        ipv4_address: 172.16.17.41