update readme

This commit is contained in:
Adrien Marquès 2018-09-26 16:21:40 +02:00
parent b9217121ed
commit bb220f44dc
1 changed files with 30 additions and 8 deletions

View File

@ -1,16 +1,10 @@
# | Introduction to docker (2) | # | Introduction to docker (2) |
**Adrien Marquès**
[TOC] [TOC]
## II. Linking containers
### 1)
## III. Setting up a development stack ## III. Setting up a development stack
@ -93,3 +87,31 @@ The `nginx` container is configured to only accept the host `somedomain.io`, it
If the project is pushed into a production server, if you have no other program occupying the port `80`, you can just replace the port binding `8080:80` in `docker-compose.yml`. If it is already taken by apache/nginx, you will have to create an entry in your web server to forward your requests from your address (_i.e. domain.com_) to the specific port 8080 (_c.f. [reverse proxy](https://en.wikipedia.org/wiki/Reverse_proxy)_). If the project is pushed into a production server, if you have no other program occupying the port `80`, you can just replace the port binding `8080:80` in `docker-compose.yml`. If it is already taken by apache/nginx, you will have to create an entry in your web server to forward your requests from your address (_i.e. domain.com_) to the specific port 8080 (_c.f. [reverse proxy](https://en.wikipedia.org/wiki/Reverse_proxy)_).
### 3) Launch the environment
#### 1. Download the sources
```bash
git clone https://git.xdrm.io/MTI/tp-docker-eisti ./tp-adrien-marques;
```
#### 2. Launch it
It is now fairly simple just run the 2 following commands (inside the repository) :
```bash
docker-compose up; # launch the env
xdg-open "http://somedomain.io:8080"; # open the web page
```
Notes:
- when restarting the environment, the database persists.