Giter Site home page Giter Site logo

Create new stack/image about deck HOT 2 CLOSED

sfx101 avatar sfx101 commented on May 13, 2024 2
Create new stack/image

from deck.

Comments (2)

sfx101 avatar sfx101 commented on May 13, 2024 4

Hi @soarcn, thank you for trying it out!

To add Memcached to your lamp or lemp stack, please do the following

In the DECK UI, click on "More" beside your stack. Then "Configure" & "More advanced ..."

image

  1. Edit the file Dockefile-{The PHP version you've chosen, ex 7.4}
  2. Add this line: php7.4-memcached \

image

  1. Edit the file docker-compose.yml
  2. Add these 2 lines after services:
  memcached:
    image: memcached:latest

image

Go, back to the DECK UI & rebuild the stack to connect to Memcached server

Here's an example code below to test if it working

<?php
$m = new Memcached();
$m->addServer('memcached', 11211);

$stats = $m->getStats();


echo "<pre>";

if ($stats)
    print_r($stats);
else
    echo "Connection error";

from deck.

soarcn avatar soarcn commented on May 13, 2024

Thank you so much for answering my question, very clear and it's working!

Brilliant!

from deck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.