Git Product home page Git Product logo

Comments (14)

punkstar avatar punkstar commented on May 25, 2024

Your message has been formatted poorly. Can you run the commands one by one and let me know which one causes the issue? What version of docker are you running? What version of docker-compose are you running? What does your docker-compose.yml look like?

from docker-magento2.

pbilinski avatar pbilinski commented on May 25, 2024

Hi,

Thanks for quick reply. Answering your questions:

root@aragorn:~/compose/docker-magento2-master# docker --version
**Docker version 1.6.2, build 7c8fca2**
root@aragorn:~/compose/docker-magento2-master# docker-compose --version
**docker-compose version 1.6.2, build 4d72027**

My .yml as below:

cat docker-compose.yml 
version: "2"
services:
  web:
    image: meanbee/magento2-nginx:1.9
    ports:
      - "80:80"
    links:
      - fpm
      - db
    volumes_from:
      - appdata
    env_file:
      - ./global.env
    environment:
      - VIRTUAL_HOST=magento2.docker

  fpm:
    image: meanbee/magento2-php:7.0-fpm
    ports:
      - 9000
    links:
      - db
    volumes_from:
      - appdata
    env_file:
      - ./global.env

  db:
    image: mariadb:10
    ports:
      - 3306
    volumes_from:
      - dbdata
    environment:
      - MYSQL_ROOT_PASSWORD=magento2
      - MYSQL_DATABASE=magento2
      - MYSQL_USER=magento2
      - MYSQL_PASSWORD=magento2
      - TERM=meh

  cli:
    image: meanbee/magento2-php:7.0-cli
    links:
      - db
    volumes:
      - ~/.composer/cache:/root/.composer/cache
    volumes_from:
      - appdata
    env_file:
      - ./global.env
      - ./composer.env
    environment:
      - M2SETUP_DB_HOST=db
      - M2SETUP_DB_NAME=magento2
      - M2SETUP_DB_USER=magento2
      - M2SETUP_DB_PASSWORD=magento2
      - M2SETUP_BASE_URL=http://magento2.docker/
      - M2SETUP_BACKEND_FRONTNAME=admin
      - M2SETUP_ADMIN_FIRSTNAME=Admin
      - M2SETUP_ADMIN_LASTNAME=User
      - [email protected]
      - M2SETUP_ADMIN_USER=admin
      - M2SETUP_ADMIN_PASSWORD=password1
      - M2SETUP_VERSION=2.0.2
      # - M2SETUP_USE_SAMPLE_DATA=true

  appdata:
    image: tianon/true
    volumes:
      - ./magento:/magento

  dbdata:
    image: tianon/true
    volumes:
      - /var/lib/mysql

Of course in composer.env I have proper GitHub & Magento keys.

from docker-magento2.

pbilinski avatar pbilinski commented on May 25, 2024

And result of command:

docker-compose run cli magento-installer

is:

Creating network "dockermagento2master_default" with the default driver
ERROR: 404 page not found

from docker-magento2.

punkstar avatar punkstar commented on May 25, 2024

Version two of the docker compose yaml file schema needs docker 1.10 or
later. Can you try using a version one schema with these images or upgrade
docker?
On Tue, 22 Mar 2016 at 20:23, pbilinski [email protected] wrote:

And result of command:

docker-compose run cli magento-installer

is:

Creating network "dockermagento2master_default" with the default driver
ERROR: 404 page not found


You are receiving this because you commented.

Reply to this email directly or view it on GitHub
#15 (comment)

from docker-magento2.

pbilinski avatar pbilinski commented on May 25, 2024

Ok, after upgrading "docker" to latest version everything worked fine.

Now, I have problem with no-working PHP-FPM:

Result: Installation complete

'docker ps' result:

CONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS              PORTS                         NAMES
a3aae8f055c1        meanbee/magento2-nginx:1.9   "/usr/local/bin/docke"   5 minutes ago       Up About a minute   0.0.0.0:80->80/tcp, 443/tcp   dockermagento2master_web_1
a9ebe1b77084        mariadb:10                   "/docker-entrypoint.s"   About an hour ago   Up About a minute   0.0.0.0:32775->3306/tcp       dockermagento2master_db_1

There is no "9000" port running FPM. It's interesing becase:

docker-compose restart
Restarting dockermagento2master_web_1 ... done
Restarting dockermagento2master_cli_1 ... done
Restarting dockermagento2master_fpm_1 ... done
Restarting dockermagento2master_db_1 ... done
Restarting dockermagento2master_dbdata_1 ... done
Restarting dockermagento2master_appdata_1 ... done

Seems to work fine.

What should be done to have FPM working @ 9000?

HTTP/SQL seems to be OK after deploying docker-compose with .yml as pasted in this subject before.

from docker-magento2.

punkstar avatar punkstar commented on May 25, 2024

What does docker-compose ps output?

from docker-magento2.

pbilinski avatar pbilinski commented on May 25, 2024

$ docker-compose ps

Name Command State Ports

dockermagento2master_appdata_1 /true Exit 0
dockermagento2master_cli_1 /usr/local/bin/docker-envi ... Exit 0
dockermagento2master_db_1 /docker-entrypoint.sh mysqld Up 0.0.0.0:32771->3306/tcp
dockermagento2master_dbdata_1 /true Exit 0
*dockermagento2master_fpm_1 /usr/local/bin/docker-envi ... Exit 78 *
dockermagento2master_web_1 /usr/local/bin/docker-envi ... Up 443/tcp, 0.0.0.0:80->80/tcp

from docker-magento2.

punkstar avatar punkstar commented on May 25, 2024

What kind of logs do you get from docker on that container?

from docker-magento2.

pbilinski avatar pbilinski commented on May 25, 2024

How can I get those logs?

from docker-magento2.

punkstar avatar punkstar commented on May 25, 2024

from docker-magento2.

pbilinski avatar pbilinski commented on May 25, 2024

Ok, now we're clear. I composed whole thing with 'root' user and now have:

Incumbent: user = www-data, group = www-data
groupmod: GID '990' already exists
[11-Apr-2016 15:18:55] ERROR: [pool www] please specify user and group other than root
[11-Apr-2016 15:18:55] ERROR: [pool www] please specify user and group other than root
[11-Apr-2016 15:18:55] ERROR: FPM initialization failed
[11-Apr-2016 15:18:55] ERROR: FPM initialization failed

So I'll try to make compose via normal user and then let you know.

from docker-magento2.

pbilinski avatar pbilinski commented on May 25, 2024

Yeah. Everything works fine. Thanks a lot!

from docker-magento2.

pbilinski avatar pbilinski commented on May 25, 2024

OK, another (random :/) problem:

/compose/docker-magento2-master$ docker-compose run cli magento-installer
Creating network "dockermagento2master_default" with the default driver
Pulling appdata (tianon/true:latest)...
latest: Pulling from tianon/true
4a085cb02190: Pull complete
Digest: sha256:f38efe18048c9e7d3f264eb2c76081417b30e3ecb28f2d38eaeb8588abf3a902
Status: Downloaded newer image for tianon/true:latest
Creating dockermagento2master_appdata_1
Creating dockermagento2master_dbdata_1
Pulling db (mariadb:10)...
10: Pulling from library/mariadb
efd26ecc9548: Pull complete
a3ed95caeb02: Pull complete
af2f7dea6ac4: Pull complete
2ae5675c66d9: Pull complete
486710c606c8: Pull complete
a9f999908f1c: Pull complete
b5606ca33e0a: Pull complete
d12010a03c20: Pull complete
82fc9272a692: Pull complete
0d4b5b846b2c: Pull complete
Digest: sha256:3e8635aaa913692418245bf5b9e05cd54ecfc0abbd4349a935bb385671ed5506
Status: Downloaded newer image for mariadb:10
Creating dockermagento2master_db_1
Pulling cli (meanbee/magento2-php:7.0-cli)...
Pulling repository docker.io/meanbee/magento2-php

ERROR: Error while pulling image: Get https://index.docker.io/v1/repositories/meanbee/magento2-php/images: dial tcp: lookup index.docker.io on 127.0.1.1:53: no such host

Any ideas?

from docker-magento2.

punkstar avatar punkstar commented on May 25, 2024

This is a different issue to the one that you experienced when you opened this issue - it should not have been reopened.

A Google gives me:

It isn't related to the docker images in this repository.

from docker-magento2.

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.