Skip to content

Commit bb7f485

Browse files
committed
add external port for Redis
1 parent f4eb88f commit bb7f485

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.env.sample

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ WEB_USER=www-data
1717
NETWORK_BASE=169.254.81
1818

1919
PHPMYADMIN_PORT=8080
20+
REDIS_PASS=mageredis
21+
REDIS_PORT=7963
2022

2123
# --------- MAGENTO VARIABLES ----------------
2224
# magento accepts this three enviroments:

config/php/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ RUN mkdir /etc/ssmtp \
7373
shadow \
7474
# email
7575
ssmtp \
76+
openssl-dev \
77+
pkgconfig \
78+
libressl-dev \
7679
# install build deps
7780
&& apk add --no-cache --virtual .build-deps \
7881
$PHPIZE_DEPS \
@@ -103,6 +106,8 @@ RUN mkdir /etc/ssmtp \
103106
# install redis
104107
&& pecl install -o -f redis \
105108
&& docker-php-ext-enable redis.so \
109+
&& pecl install mongodb \
110+
&& docker-php-ext-enable mongodb.so \
106111
&& pecl clear-cache \
107112
# Install xdebug
108113
&& if [ "${ENVIROMENT}" = "developer" ]; then \

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ services:
3333
container_name: redis
3434
image: redis:alpine
3535
hostname: redis
36+
command: redis-server --requirepass ${REDIS_PASS}
37+
ports:
38+
- "${REDIS_PORT}:6379"
3639
networks:
3740
back:
3841
ipv4_address: ${NETWORK_BASE}.7

0 commit comments

Comments
 (0)