Skip to content

Commit

Permalink
Updated docker docs, docker configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
DKravtsov committed Jul 7, 2024
1 parent 5fb1d35 commit 5c5d5a3
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 39 deletions.
8 changes: 4 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ _ide_helper.php

### Docker
Dockerfile
docker-compose.yml
docker-compose-test-ci.yml
docker-compose-staging.yml
docker-compose-prod.yml
compose.yaml
compose-test-ci.yaml
compose-staging.yaml
compose-prod.yaml
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ push_staging_images:
stage: deploy
script:
- make build-staging
# TODO: set necessary image name in docker-compose-staging.yml according to your registry and edit lines bellow
# TODO: set necessary image name in compose-staging.yaml according to your registry and edit lines bellow
#- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
#- docker-compose -f docker-compose-staging.yml push
#- docker compose -f compose-staging.yaml push
only:
- master
- develop
Expand All @@ -63,9 +63,9 @@ push_prod_images:
stage: deploy
script:
- make build-prod
# TODO: set necessary image name in docker-compose-prod.yml according to your registry and edit lines bellow
# TODO: set necessary image name in compose-prod.yaml according to your registry and edit lines bellow
#- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
#- docker-compose -f docker-compose-prod.yml push
#- docker compose -f compose-prod.yaml push
only:
- master
- /^release.*$/
46 changes: 23 additions & 23 deletions Makefile

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 6 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Docker environment required to run Laravel (based on official php and mysql dock
[Source code](https://github.com/systemsdk/docker-apache-php-laravel.git)

## Requirements
* Docker version 18.06 or later
* Docker compose version 1.22 or later
* Docker Engine version 18.06 or later
* Docker Compose version 1.22 or later
* An editor or IDE
* MySQL Workbench

Expand All @@ -25,12 +25,10 @@ Note: OS recommendation - Linux Ubuntu based.
4. Laravel 11
5. Mailpit (only for debug emails on dev environment)

## Setting up Docker and docker-compose
1.For installing Docker please follow steps mentioned on page [install on Ubuntu linux](https://docs.docker.com/install/linux/docker-ce/ubuntu/) or [install on Mac/Windows](https://docs.docker.com/engine/install/).
## Setting up Docker Engine with Docker Compose
For installing Docker Engine with docker compose please follow steps mentioned on page [Docker Engine](https://docs.docker.com/engine/install/).

2.For installing docker-compose as `Linux Standalone binary` please follow steps on the page [install compose](https://docs.docker.com/compose/install/standalone/) if you are using Linux OS.

Note 1: Please run next cmd after above step 2 if you are using Linux OS: `sudo usermod -aG docker $USER`
Note 1: Please run next cmd after above step if you are using Linux OS: `sudo usermod -aG docker $USER`

Note 2: If you are using Docker Desktop for MacOS 12.2 or later - please enable [virtiofs](https://www.docker.com/blog/speed-boost-achievement-unlocked-on-docker-desktop-4-6-for-mac/) for performance (enabled by default since Docker Desktop v4.22).

Expand Down Expand Up @@ -123,7 +121,7 @@ If you have installed composer and want to install environment via composer you
composer create-project systemsdk/docker-apache-php-laravel example-app
```

2.Edit `docker-compose-prod.yml` and set necessary user/password for MySQL.
2.Edit `compose-prod.yaml` and set necessary user/password for MySQL.

3.Edit `env.prod` and set necessary user/password for MySQL.

Expand Down

0 comments on commit 5c5d5a3

Please sign in to comment.