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