Skip to content

dcorroyer/docker-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized php app setup with https

Prerequisites

You need to have:

  • Docker and Docker Compose installed on your computer.
  • Your SSH Keys configured on your Gitea settings
  • Mkcert installed on your computer

Installation

First step, clone the project on your computer

git clone git@github.com:dcorroyer/repository-name.git src

You need to create mkcert keys in the /docker/nginx directory:

mkcert -key-file app.key.pem -cert-file app.cert.pem app.local
mkcert -install

A shell script is used to set up the docker containers and de project, it also write the url app.local in your /etc/hosts:

run command:

./install

Others

A Makefile is up to provide some useful commands:

make up <=> docker-compose up -d