Installing docker with nginx-proxy I got docker-php-ext-install not found error
I need to install laravel 5 app on Digital Ocean Server (under kubuntu 18) using Docker with VIRTUAL_HOST pointing to my my.freenom.com
host using proxy server (https://github.com/jwilder/nginx-proxy) and for this in my app I use configuraion
docker-compose.yml:
version: '3.1'
services:
web:
image: jwilder/nginx-proxy
build:
context: ./web
dockerfile: Dockerfile.yml
environment:
- APACHE_RUN_USER =#1000
- VIRTUAL_HOST =my.freenom.com
volumes:
- ./mysite.template:/etc/nginx/conf.d/mysite.template
ports:
- 8085:80
working_dir: ${APP_PTH_CONTAINER}
db:
image: mysql:5.5.62
restart: always
environment:
MYSQL_ROOT_PASSWORD: 1
volumes:
- ${DB_PATH_HOST}:/var/lib/mysql
adminer:
image: adminer
restart: always
ports:
- 8086:80
links:
- db
composer:
image: composer:1.6
volumes:
- ${APP_PATH_HOST}:${APP_PTH_CONTAINER}
working_dir: ${APP_PTH_CONTAINER}
command: composer install --ignore-platform-reqs
and in web/Dockerfile.yml :
FROM nginx:1.10
RUN apt-get update -y && apt-get install -y libpng-dev
nano libmcrypt-dev
RUN docker-php-ext-install
pdo_mysql
mcrypt
&& a2enmod
rewrite
but running command :
docker-compose up -d --build
I got error :
docker-php-ext-install: not found
Why error and which is correct way?
Thanks!
docker laravel-5 hosting
add a comment |
I need to install laravel 5 app on Digital Ocean Server (under kubuntu 18) using Docker with VIRTUAL_HOST pointing to my my.freenom.com
host using proxy server (https://github.com/jwilder/nginx-proxy) and for this in my app I use configuraion
docker-compose.yml:
version: '3.1'
services:
web:
image: jwilder/nginx-proxy
build:
context: ./web
dockerfile: Dockerfile.yml
environment:
- APACHE_RUN_USER =#1000
- VIRTUAL_HOST =my.freenom.com
volumes:
- ./mysite.template:/etc/nginx/conf.d/mysite.template
ports:
- 8085:80
working_dir: ${APP_PTH_CONTAINER}
db:
image: mysql:5.5.62
restart: always
environment:
MYSQL_ROOT_PASSWORD: 1
volumes:
- ${DB_PATH_HOST}:/var/lib/mysql
adminer:
image: adminer
restart: always
ports:
- 8086:80
links:
- db
composer:
image: composer:1.6
volumes:
- ${APP_PATH_HOST}:${APP_PTH_CONTAINER}
working_dir: ${APP_PTH_CONTAINER}
command: composer install --ignore-platform-reqs
and in web/Dockerfile.yml :
FROM nginx:1.10
RUN apt-get update -y && apt-get install -y libpng-dev
nano libmcrypt-dev
RUN docker-php-ext-install
pdo_mysql
mcrypt
&& a2enmod
rewrite
but running command :
docker-compose up -d --build
I got error :
docker-php-ext-install: not found
Why error and which is correct way?
Thanks!
docker laravel-5 hosting
Maybe a silly question, but why do you expect to finddocker-php-ext-install
innginx
container?
– grapes
Dec 29 '18 at 8:57
Does not it have? I worked with docker container based on php:7.2-apache. Could you, please, give a hint what have I to use with ref link ?
– mstdmstd
Dec 29 '18 at 14:57
Dont you want to setup yourDockerfile
onphp
rather thennginx
?
– grapes
Dec 29 '18 at 16:52
I search decision with VIRTUAL_HOST option, as I need to install my laravel app on Digital Ocean (ubuntu server )under docker. I made search and found possible decision with github.com/jwilder/nginx-proxy, but nginx actually is new for me...
– mstdmstd
Dec 30 '18 at 4:12
add a comment |
I need to install laravel 5 app on Digital Ocean Server (under kubuntu 18) using Docker with VIRTUAL_HOST pointing to my my.freenom.com
host using proxy server (https://github.com/jwilder/nginx-proxy) and for this in my app I use configuraion
docker-compose.yml:
version: '3.1'
services:
web:
image: jwilder/nginx-proxy
build:
context: ./web
dockerfile: Dockerfile.yml
environment:
- APACHE_RUN_USER =#1000
- VIRTUAL_HOST =my.freenom.com
volumes:
- ./mysite.template:/etc/nginx/conf.d/mysite.template
ports:
- 8085:80
working_dir: ${APP_PTH_CONTAINER}
db:
image: mysql:5.5.62
restart: always
environment:
MYSQL_ROOT_PASSWORD: 1
volumes:
- ${DB_PATH_HOST}:/var/lib/mysql
adminer:
image: adminer
restart: always
ports:
- 8086:80
links:
- db
composer:
image: composer:1.6
volumes:
- ${APP_PATH_HOST}:${APP_PTH_CONTAINER}
working_dir: ${APP_PTH_CONTAINER}
command: composer install --ignore-platform-reqs
and in web/Dockerfile.yml :
FROM nginx:1.10
RUN apt-get update -y && apt-get install -y libpng-dev
nano libmcrypt-dev
RUN docker-php-ext-install
pdo_mysql
mcrypt
&& a2enmod
rewrite
but running command :
docker-compose up -d --build
I got error :
docker-php-ext-install: not found
Why error and which is correct way?
Thanks!
docker laravel-5 hosting
I need to install laravel 5 app on Digital Ocean Server (under kubuntu 18) using Docker with VIRTUAL_HOST pointing to my my.freenom.com
host using proxy server (https://github.com/jwilder/nginx-proxy) and for this in my app I use configuraion
docker-compose.yml:
version: '3.1'
services:
web:
image: jwilder/nginx-proxy
build:
context: ./web
dockerfile: Dockerfile.yml
environment:
- APACHE_RUN_USER =#1000
- VIRTUAL_HOST =my.freenom.com
volumes:
- ./mysite.template:/etc/nginx/conf.d/mysite.template
ports:
- 8085:80
working_dir: ${APP_PTH_CONTAINER}
db:
image: mysql:5.5.62
restart: always
environment:
MYSQL_ROOT_PASSWORD: 1
volumes:
- ${DB_PATH_HOST}:/var/lib/mysql
adminer:
image: adminer
restart: always
ports:
- 8086:80
links:
- db
composer:
image: composer:1.6
volumes:
- ${APP_PATH_HOST}:${APP_PTH_CONTAINER}
working_dir: ${APP_PTH_CONTAINER}
command: composer install --ignore-platform-reqs
and in web/Dockerfile.yml :
FROM nginx:1.10
RUN apt-get update -y && apt-get install -y libpng-dev
nano libmcrypt-dev
RUN docker-php-ext-install
pdo_mysql
mcrypt
&& a2enmod
rewrite
but running command :
docker-compose up -d --build
I got error :
docker-php-ext-install: not found
Why error and which is correct way?
Thanks!
docker laravel-5 hosting
docker laravel-5 hosting
asked Dec 29 '18 at 5:56
mstdmstdmstdmstd
176614
176614
Maybe a silly question, but why do you expect to finddocker-php-ext-install
innginx
container?
– grapes
Dec 29 '18 at 8:57
Does not it have? I worked with docker container based on php:7.2-apache. Could you, please, give a hint what have I to use with ref link ?
– mstdmstd
Dec 29 '18 at 14:57
Dont you want to setup yourDockerfile
onphp
rather thennginx
?
– grapes
Dec 29 '18 at 16:52
I search decision with VIRTUAL_HOST option, as I need to install my laravel app on Digital Ocean (ubuntu server )under docker. I made search and found possible decision with github.com/jwilder/nginx-proxy, but nginx actually is new for me...
– mstdmstd
Dec 30 '18 at 4:12
add a comment |
Maybe a silly question, but why do you expect to finddocker-php-ext-install
innginx
container?
– grapes
Dec 29 '18 at 8:57
Does not it have? I worked with docker container based on php:7.2-apache. Could you, please, give a hint what have I to use with ref link ?
– mstdmstd
Dec 29 '18 at 14:57
Dont you want to setup yourDockerfile
onphp
rather thennginx
?
– grapes
Dec 29 '18 at 16:52
I search decision with VIRTUAL_HOST option, as I need to install my laravel app on Digital Ocean (ubuntu server )under docker. I made search and found possible decision with github.com/jwilder/nginx-proxy, but nginx actually is new for me...
– mstdmstd
Dec 30 '18 at 4:12
Maybe a silly question, but why do you expect to find
docker-php-ext-install
in nginx
container?– grapes
Dec 29 '18 at 8:57
Maybe a silly question, but why do you expect to find
docker-php-ext-install
in nginx
container?– grapes
Dec 29 '18 at 8:57
Does not it have? I worked with docker container based on php:7.2-apache. Could you, please, give a hint what have I to use with ref link ?
– mstdmstd
Dec 29 '18 at 14:57
Does not it have? I worked with docker container based on php:7.2-apache. Could you, please, give a hint what have I to use with ref link ?
– mstdmstd
Dec 29 '18 at 14:57
Dont you want to setup your
Dockerfile
on php
rather then nginx
?– grapes
Dec 29 '18 at 16:52
Dont you want to setup your
Dockerfile
on php
rather then nginx
?– grapes
Dec 29 '18 at 16:52
I search decision with VIRTUAL_HOST option, as I need to install my laravel app on Digital Ocean (ubuntu server )under docker. I made search and found possible decision with github.com/jwilder/nginx-proxy, but nginx actually is new for me...
– mstdmstd
Dec 30 '18 at 4:12
I search decision with VIRTUAL_HOST option, as I need to install my laravel app on Digital Ocean (ubuntu server )under docker. I made search and found possible decision with github.com/jwilder/nginx-proxy, but nginx actually is new for me...
– mstdmstd
Dec 30 '18 at 4:12
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53967093%2finstalling-docker-with-nginx-proxy-i-got-docker-php-ext-install-not-found-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53967093%2finstalling-docker-with-nginx-proxy-i-got-docker-php-ext-install-not-found-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Maybe a silly question, but why do you expect to find
docker-php-ext-install
innginx
container?– grapes
Dec 29 '18 at 8:57
Does not it have? I worked with docker container based on php:7.2-apache. Could you, please, give a hint what have I to use with ref link ?
– mstdmstd
Dec 29 '18 at 14:57
Dont you want to setup your
Dockerfile
onphp
rather thennginx
?– grapes
Dec 29 '18 at 16:52
I search decision with VIRTUAL_HOST option, as I need to install my laravel app on Digital Ocean (ubuntu server )under docker. I made search and found possible decision with github.com/jwilder/nginx-proxy, but nginx actually is new for me...
– mstdmstd
Dec 30 '18 at 4:12