Go to file
2024-01-29 11:48:26 +05:00
data Add: ignore files for data folders 2023-06-01 11:02:24 +05:00
docker Add php 8.1 2021-12-13 00:14:01 +05:00
dumps Add: ignore files for data folders 2023-06-01 11:02:24 +05:00
.env.dist Add minio 2021-12-13 00:17:51 +05:00
.gitignore Add: Makefile example. Config fixes. 2020-11-20 09:53:34 +05:00
docker-compose.dist.yml Merge branch 'master' of gitlab.com-personal:sn_yakubenko/docker_zoo 2021-12-13 00:30:10 +05:00
LICENSE Add: License 2020-12-19 19:52:28 +05:00
Makefile.example Update: php version. moved Docker files to dist. 2021-02-05 21:03:29 +05:00
README.md Fix: email 2024-01-29 11:48:26 +05:00

DOCKER ZOO

Get your local PHP development environment set up in minutes.

Installation

To use this stuff you have to be familiar with git submodules as this repo is supposed to be used as a git submodule.

Run these commands in your project's dir.

git submodule add https://gitlab.com/sn_yakubenko/docker_zoo.git
git submodule init
git submodule update

What's next

This is where the party starts. Do the following.

cd docker_zoo
cp .env.dist .env
cp docker-compose.dist.yml docker-compose.yml
cd ..
cp ./docker_zoo/Makefile.example Makefile

Then you have to edit your main .gitignore file (in your project's root). Add your newly copied Makefile into it. So you won't have your experiments in your repo.

Open your Makefile in your favourite editor and change the paths for the following as shown below.

DOCKER_COMPOSE_FILE:=docker_zoo/docker-compose.yml
ENV_FILE:=docker_zoo/.env

By doing this you'll make your Makefile use those config files.

How to use what I've just done

run services - run this in your project's dir sudo make start c=service1 service2 ...

stop services - run this in your project's dir sudo make down

run a command - run this in your project's dir sudo make cmd c=service command - this command will be run in your working dir

I've done all that. What's next

Open http://localhost:8080 on your host machine and you shoud see your project's homepage

I've done all that and can't get my app running

So, browse the Makefile and you'll find that log and status things. Feel free to Google errors. Only if nothing else helps, contact me stanislav.yakubenko@yandex.ru