1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
server: build: ./ container_name: "service-memcache" mem_limit: 2g memswap_limit: 3g cpu_shares: 2 restart: "on-failure:2" privileged: true ports: - "9271:11211" environment: CONTAINER_TYPE: "service" CONTAINER_SERVICE: "memcache" CONTAINER_INSTANCE: "service-memcache" volumes: - "/tmp/container/logs/memcache:/logs"