GithubHelp home page GithubHelp logo

akhomy / docker-compose-lamp Goto Github PK

View Code? Open in Web Editor NEW
84.0 14.0 31.0 4.87 MB

Docker Compose LAMP stack

License: MIT License

PHP 46.49% JavaScript 11.96% M4 0.14% C 21.31% CSS 1.14% HTML 18.82% Dockerfile 0.13%
docker docker-compose lamp apache2 mpm-mode php-fpm nginx mailhog docker-compose-lamp ngrok

docker-compose-lamp's Introduction

Status

Archived in favor of other tools.

Docker Compose Web stack

Based on the Docker images, built to be a fast, small, and extendable web stack.

Stack

The web stack consists of the following containers:

Container Versions Service name Image Enabled by default
PHP-FPM php-7, php-5 php-fpm [akhomy/alpine-php_fpm]
Apache latest apache2_mpm [akhomy/alpine-apache]
Nginx latest nginx [akhomy/alpine-nginx]
Node.js node:alpine node [node]
Mailhog latest mailhog [mailhog/mailhog]
NGROK latest ngrok [akhomy/alpine-ngrok]
Solr 6-alpine solr [solr]
PhpMyAdmin latest phpmyadmin [phpmyadmin/phpmyadmin]
Adminer latest adminer [adminer]
MySQL latest mysql [mysql]
PostgreSQL postgres:alpine postgres [postgres]
MongoDB latest mongo [mongo]
Redis redis:alpine redis [redis]
Memcached memcached:alpine memcached [memcached]
PHP-FPM-DATA php-7, php-5 php-fpm-data [akhomy/alpine-php_fpm]
StandaloneFirefoxDebug 2.48.2 selenium [selenium/standalone-firefox-debug]

Requirements

Install Docker and Docker Compose. This project is a part of Docker Compose Stack. If you need an access via URL, please, reffer link above and install project.

Run

Run docker-compose up -d. Run docker-compose ps to find the PHP container. To go inside php container run docker exec -it --user www-data <PHP-CONTAINER-NAME> ash. There are specific templates for docker-sync and docker-compose. See docker/docker-compose and docker/docker-sync. To use docker sync run docker-sync start. Be aware, you need correct docker-compose template and put it content into docker-compose.yaml.

Variables

You can override project settings in .env file.

Documentation

See READMEs for more details, like environment variables for images:

License

This project is licensed under the MIT open source license.

docker-compose-lamp's People

Contributors

akhomy avatar andrii-khomych-lemberg-co-uk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-compose-lamp's Issues

MariaDB doesn't start

I tried to start the container via docker toolbox for windows.
However, I get the following error with MariaDB:

180122 7:41:23 [Note] mysqld (mysqld 10.0.33-MariaDB-1~jessie) starting as process 1 ...
180122 7:41:23 [Warning] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive
180122 7:41:23 [Note] InnoDB: Using mutexes to ref count buffer pool pages
180122 7:41:23 [Note] InnoDB: The InnoDB memory heap is disabled
180122 7:41:23 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
180122 7:41:23 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
180122 7:41:23 [Note] InnoDB: Compressed tables use zlib 1.2.8
180122 7:41:23 [Note] InnoDB: Using Linux native AIO
180122 7:41:23 [Note] InnoDB: Using CPU crc32 instructions
180122 7:41:23 [Note] InnoDB: Initializing buffer pool, size = 256.0M
180122 7:41:23 [Note] InnoDB: Completed initialization of buffer pool
180122 7:41:23 [Warning] InnoDB: Failed to set O_DIRECT on file ./ibdata1: OPEN: Invalid argument, continuing anyway. O_DIRECT is known to result in 'Invalid argument' on Linux on tmpfs, see MySQL Bug#26662.
180122 7:41:23 [Note] InnoDB: Restoring page 0 of tablespace 0
180122 7:41:23 [Warning] InnoDB: Doublewrite does not have page_no=0 of space: 0
180122 7:41:23 [ERROR] InnoDB: space header page consists of zero bytes in data file ./ibdata1
180122 7:41:23 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
180122 7:41:23 [ERROR] Plugin 'InnoDB' init function returned error.
180122 7:41:23 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
180122 7:41:23 [Note] Plugin 'FEEDBACK' is disabled.
180122 7:41:23 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
180122 7:41:23 [ERROR] Unknown/unsupported storage engine: InnoDB
180122 7:41:23 [ERROR] Aborting
2018-01-22T07:41:23.558629686Z
180122 7:41:23 [Note] mysqld: Shutdown complete
2018-01-22T07:41:23.564745201Z

Set user passwords for docker-compose-lamp

Привет Андрей,
Спасибо за LAMP!
Ты мог бы подсказать, как задать пароли для юзеров? Я пока могу зайти только без пароля в MySQL Shell, но не знаю как зайти в phpmyadmin или использовать MySQL Workbench клиент

Cannot connect to PHPMyAdmin

Hi,

When I try to connect to the phpMyAdmin, I'm getting the following errors:

 mysqli_real_connect(): php_network_getaddresses: getaddrinfo failed: Name does not resolve
 mysqli_real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name does not resolve

I have been searching internet and tried various found solutions but nothing worked, could you help please?

I am using Fedora 29

MariaDB is aborting always

even if you restart the container, it always aborts, i change the label to the last one to see if this worked but keep doing the same

image

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.