37 lines
622 B
Markdown
37 lines
622 B
Markdown
# PTUT Virtual Environment
|
|
|
|
|
|
## Cloning
|
|
|
|
In order for the *web* submodule to load, you **must** clone with :
|
|
|
|
```bash
|
|
git clone --recursive https://git.xdrm.io/ptut/virtenv.git
|
|
```
|
|
|
|
## Requirements
|
|
|
|
You need a consistent Linux System with the following packages :
|
|
- `docker`
|
|
- `docker-compose`
|
|
|
|
|
|
You need to add a local dns record in `/etc/hosts`:
|
|
```text
|
|
127.0.0.1 ptut.com
|
|
```
|
|
|
|
## Commands
|
|
|
|
|
|
**Launch the environment**
|
|
```bash
|
|
docker-compose up -d
|
|
```
|
|
- the mounted files will match in the `./virtual` folder.
|
|
- the website will be accessible at 'ptut.com:8080'.
|
|
|
|
**Stop the environment**
|
|
```bash
|
|
docker-compose down
|
|
``` |