Skip to content

Commit a33b397

Browse files
committed
Add memcached service to Docker Compose and update Node.js version in Dockerfiles
1 parent 09e2e41 commit a33b397

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ services:
2525
networks:
2626
- frontend
2727
- backend
28+
memcached:
29+
image: memcached:alpine
30+
restart: unless-stopped
31+
networks:
32+
- backend
2833
vue-frontend:
2934
restart: unless-stopped
3035
tty: true

docker/app/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,18 @@ RUN apt-get update && apt-get install -y apt-utils curl git unzip gnupg2 \
2121
libjpeg-dev \
2222
zip \
2323
default-mysql-client \
24+
libmemcached-dev \
2425
# Clean up the package cache to reduce image size
2526
&& rm -rf /var/lib/apt/lists/*
2627

27-
# Add NodeJS 20 Repository and install nodejs
28-
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
28+
# Add NodeJS 24 Repository and install nodejs
29+
RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \
2930
&& apt-get install -y nodejs \
3031
&& rm -rf /var/lib/apt/lists/*
3132

32-
# Install XDebug via PECL
33-
RUN pecl install xdebug \
34-
&& docker-php-ext-enable xdebug
33+
# Install XDebug and memcached via PECL
34+
RUN pecl install xdebug memcached \
35+
&& docker-php-ext-enable xdebug memcached
3536

3637
# Install Composer
3738
RUN curl -sSfo /tmp/composer.phar https://getcomposer.org/installer \

docker/vue/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22-bullseye
1+
FROM node:24-bullseye
22

33
# Set working directory
44
WORKDIR /app

0 commit comments

Comments
 (0)