Skip to content

Commit 94cbb22

Browse files
MaximilianJahnsMaximilianJahns
authored andcommitted
Setup_Docker added
1 parent cea8665 commit 94cbb22

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

Setup_Docker

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Docker – Green Metrics Tool
2+
3+
This guide documents steps required to successfully run the Green Metrics Tool using Docker.
4+
5+
Several configuration files and volume mappings are currently required that are not covered in the default installation flow.
6+
7+
---
8+
9+
## Requirements
10+
11+
- Docker
12+
- Docker Compose (v2 see https://docs.green-coding.io/docs/installation/installation-windows/ )
13+
- Git
14+
15+
---
16+
17+
## Clone repository
18+
19+
```bash
20+
git clone https://github.com/green-coding-solutions/green-metrics-tool.git
21+
cd green-metrics-tool
22+
cp config.yml.example config.yml
23+
cp docker/compose.yml.example docker/docker-compose.yml
24+
edit .yml:
25+
- (change password line 13 green-metrics-tool/
26+
- changetimezone bsp. UTC
27+
- change the path of volumes to ../:/var/www/green-metrics-tool:ro
28+
(../ )to set to partent folder (2 x)
29+
30+
create files from already existing example files:
31+
cp docker/nginx/api.conf.example docker/nginx/api.conf
32+
cp docker/nginx/block-and-redirect.conf.example docker/nginx/block-and-redirect.conf
33+
cp docker/nginx/frontend.conf.example docker/nginx/frontend.conf
34+
35+
36+
37+
folderstructur:
38+
green-metrics-tool/
39+
40+
├─ new config.yml # Your new configuration file (example / base)
41+
├─ .gitignore # Updated (.gitignore now includes config.yml)
42+
├─ INSTALL_DOCKER.md # New documentation for Docker setup
43+
44+
├─ docker/
45+
│ ├─ new docker-compose.yml # Your completed Docker Compose file
46+
│ └─ nginx/
47+
│ ├─ new api.conf # Copied from api.conf.example
48+
│ ├─ new block-and-redirect.conf# Copied from block-and-redirect.conf.example
49+
│ ├─ new frontend.conf # Copied from frontend.conf.example
50+
│ ├─ api.conf.example # Original example file
51+
│ ├─ block-and-redirect.conf.example
52+
│ └─ frontend.conf.example
53+
54+
├─ Dockerfile-gunicorn # Dockerfile for Gunicorn
55+
└─ ... other project files ...
56+
57+
58+
start with first measurements https://docs.green-coding.io/docs/measuring/measuring-locally/

0 commit comments

Comments
 (0)