Simple container with Nginx, PHP, MySQL
Clone or download
Ilyamander los Ilyatos
Ilyamander los Ilyatos Merge pull request #5 from codex-team/add-gettext
Add gettext
Latest commit 8a8be47 Dec 26, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
configs Delete irrelevant order field Dec 9, 2016
db Enable lowercase mode for mysql Dec 7, 2016
nginx remove fixed servername Dec 26, 2017
php5.6-fpm
phpmyadmin
.gitignore remove fixed servername Dec 26, 2017
README.md Update README.md Nov 17, 2016
docker-compose.yml

README.md

docker

Environment

hub

https://hub.docker.com/r/codexteam/ifmo.su/

Временная инструкция

  1. git clone https://github.com/codex-team/docker

  2. cd docker

  3. git clone https://github.com/codex-team/codex www

  4. docker-compose build

  5. docker-compose up

  6. (в отдельной консоли, не закрывая предыдущую):

docker_db_1 - это имя контейнера с php. Он может называться по-другому. Узнать командой docker ps

docker exec -i docker_db_1 mysql -uroot -proot < configs/codex-db.sql

  1. echo "127.0.0.1 codex.dev" » /etc/hosts

  2. cp configs/database.php www/application/config/database.php

  3. mkdir www/application/cache

  4. mkdir www/application/logs

  5. chmod 777 www/application/logs/ www/application/cache/

  6. cp configs/oauth.php www/application/config/oauth.php

Сайт: http://codex.dev:8081/

Админка БД: http://codex.dev:8082/ (server - db, username - root, password - root)