README.md 970 Bytes
Newer Older
Klaus Franken's avatar
Klaus Franken committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Productive Server
https://webvokabeln.de

# Usage
* Standard-User: admin/admin

## Docker

### Build:
  * Build `python_modules` image: `docker build --pull --rm -f "Docker/Dockerfile-python-modules" -t python-modules:latest "."`
    * this is only necessary once, if done you can work offline
  * Build `webvokabeln` image: `docker build --rm -f "Docker/Dockerfile" -t webvokabeln:latest "."`
### Run: 
  * local data: `docker run -p 8080:8000 webvokabeln:latest`
    * where: '8080' is the external port
  * external data: `docker run -p 8080:8000 -v $(pwd)/data:/data/ webvokabeln:latest`
    * where `$(pwd)/data` is the host folder, hint: use absolute path

## VM

* copy/create a config as `app/config.py`
  * use Docker/config.py as example
* Install python3 and modules
  * see Docker/Dockerfile-python-modules for needed python modules
  * Ubuntu 18.4: `apt install python3-flask python3-waitress python-pkg-resources`
* start: `/usr/bin/python3 app/main.py`