summaryrefslogtreecommitdiffstats
path: root/Services/mongo/docker-compose.yml
blob: 2724e192eeb8bb7fabdd4cedc0c04c54312ee9a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
server:
  build: ./
  container_name: "service-mongo"
  mem_limit: 2g
  memswap_limit: 2g
  cpu_shares: 10
  restart: "on-failure:2"
  privileged: true
  ports:
    - "9251:27017"
    - "9252:28017"
  environment:
    CONTAINER_TYPE: "service"
    CONTAINER_SERVICE: "mongo"
    CONTAINER_INSTANCE: "service-mongo"
  volumes:
    - "/tmp/container/logs/mongodb:/logs"
    - "/tmp/container/mongodb:/data"