server: build: ./ container_name: "mongo-server" mem_limit: 2g memswap_limit: 2g cpu_shares: 10 restart: "on-failure:2" ports: - "9251:27017" - "9252:28017" environment: CONTAINER_TYPE: "service" CONTAINER_SERVICE: "mongo" CONTAINER_INSTANCE: "sx-mongo" volumes: - "/tmp/container/logs/mongodb:/data/logs/mongodb" - "/tmp/container/mongodb:/data/mongodb"