Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 1.44 KB

README.md

File metadata and controls

54 lines (43 loc) · 1.44 KB

Optional steps but recommended

Install Traefik to access your Drupal site using their "domain name" instead of "IP:port" . This is an one time setup and use with all projects. This is usefull for both Drupal and Non-Drupal projects.

docker network create -d bridge traefik-network
docker run -d --network=traefik-network -p 80:80 -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock --name=traefik traefik:latest --api --docker

Installation of Drupal on development server

Step 1

git clone https://github.com/ankitjain28may/affiliates-connect.git

Step 2 (optional)

Rename .env.example to .env and Modify .env file as per your requirements

Step 3

docker-compose up -d

Step 4

docker exec -it PROJECT_NAME composer install

Step 5 (Import configuration)

docker exec -it PROJECT_NAME vendor/bin/drupal ci

Step 6 (Rebuild Cache)

docker exec -it PROJECT_NAME vendor/bin/drupal cr

Installation of Drupal on production server

Here you need to override the default environment variables for production server. You can achieve it by below command while deploying.

SITE_NAME=example.com MYSQL_USER=someone MYSQL_PASS=yoursecrets docker-compose up -d

Login in Drupal using below credentials

username - admin

password - aaaaaa