mbonea-ewallet godwin
commited on
Commit
·
6dd0f6c
1
Parent(s):
251d479
added grafana
Browse files- docker-compose.yml +18 -1
- requirements.txt +3 -1
docker-compose.yml
CHANGED
@@ -15,8 +15,25 @@ services:
|
|
15 |
- postgres_data:/var/lib/postgresql/data
|
16 |
command: postgres -c max_connections=500 -c shared_buffers=1GB -c effective_cache_size=3GB -c maintenance_work_mem=512MB
|
17 |
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
app:
|
|
|
20 |
build:
|
21 |
context: .
|
22 |
ports:
|
|
|
15 |
- postgres_data:/var/lib/postgresql/data
|
16 |
command: postgres -c max_connections=500 -c shared_buffers=1GB -c effective_cache_size=3GB -c maintenance_work_mem=512MB
|
17 |
|
18 |
+
grafana:
|
19 |
+
image: grafana/grafana:latest
|
20 |
+
restart: always
|
21 |
+
ports:
|
22 |
+
- "3000:3000"
|
23 |
+
environment:
|
24 |
+
GF_AUTH_ANONYMOUS_ENABLED: "true"
|
25 |
+
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin"
|
26 |
+
GF_AUTH_ANONYMOUS_ORG_NAME: "Main Org."
|
27 |
+
GF_SECURITY_ADMIN_USER: user
|
28 |
+
GF_SECURITY_ADMIN_PASSWORD: password
|
29 |
+
DATABASE_TYPE: postgres
|
30 |
+
DATABASE_HOST: db
|
31 |
+
DATABASE_PORT: 5432
|
32 |
+
DATABASE_NAME: mydatabase
|
33 |
+
DATABASE_USER: user
|
34 |
+
DATABASE_PASSWORD: password
|
35 |
app:
|
36 |
+
restart: always
|
37 |
build:
|
38 |
context: .
|
39 |
ports:
|
requirements.txt
CHANGED
@@ -15,4 +15,6 @@ passlib # for password hashing
|
|
15 |
pydantic[email]
|
16 |
uvicorn==0.21.1
|
17 |
gunicorn
|
18 |
-
|
|
|
|
|
|
15 |
pydantic[email]
|
16 |
uvicorn==0.21.1
|
17 |
gunicorn
|
18 |
+
orm[mysql]
|
19 |
+
python-multipart
|
20 |
+
asyncmy
|