This repository has been archived by the owner on Jun 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
86 lines (77 loc) · 2.1 KB
/
docker-compose.yaml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3.9"
services:
db:
image: postgres
container_name: database_postgres
networks:
- composed_network
ports:
- 5432:5432
volumes:
- taskdb:/data/db
fastapi:
image: testing_sahaay
#change it to build: .
container_name: Jumping_Jose
# Docker container Name will be Dancing Rose
command: sh -c "python3 manage.py migrate && uvicorn Core.asgi:fastapi --proxy-headers --host 0.0.0.0 --port 8080"
networks:
- composed_network
#ports that would be exposed
depends_on:
- db
ports:
- 8080:8080
environment:
- DB_URL=postgres://db/sahaayDB
# Links the directory ./app to the docker volume
# app
volumes:
- ./design:/design
- ./Core:/Core
# prometheus:
# image: prom/prometheus:latest
# restart: unless-stopped
# container_name: net_prometheus
# networks:
# - composed_network
# ports:
# - 9090:9090
# volumes:
# - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
# #Add further yml files here
# command:
# - "--config.file=/etc/prometheus/prometheus.yml"
# - '--storage.tsdb.path=/prometheus'
# - '--web.console.libraries=/etc/prometheus/console_libraries'
# - '--web.console.templates=/etc/prometheus/consoles'
# - '--storage.tsdb.retention=200h'
# - '--web.enable-lifecycle'
# grafana:
# image: grafana/grafana:latest
# restart: unless-stopped
# user: "472"
# container_name: net_grafana
# depends_on:
# - prometheus
# networks:
# - composed_network
# ports:
# - 3000:3000
# volumes:
# - ./grafana/provisioning/datasources/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
# #Add dashboards to the volumes
volumes:
taskdb:
networks:
composed_network:
name: custom_network
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 172.16.238.0/24
gateway: 172.16.238.1
- subnet: 2001:3984:3989::/64
gateway: 2001:3984:3989::1