-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
114 lines (96 loc) · 2.14 KB
/
docker-compose.yml
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: "3"
services:
meme-generator:
env_file:
- .env
build:
context: meme_generator/
dockerfile: Dockerfile
ports:
- 8088:8088
restart: always
volumes:
- ${MODEL_PATH}:/model
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
entrypoint: uvicorn inference:app --host 0.0.0.0 --port 8088
memes-api:
env_file:
- .env
build:
context: image_service/MemesApi/MemesApi/
dockerfile: Dockerfile
ports:
- 9999:9999
volumes:
- ${STATIC_FILES_PATH}:/app/static
restart: always
bot:
env_file:
- .env
build:
context: tg_bot/
dockerfile: Dockerfile
cadvisor:
image: gcr.io/cadvisor/cadvisor
container_name: cadvisor
restart: unless-stopped
privileged: true
env_file:
- .env
command:
- '--housekeeping_interval=10s'
- '--allow_dynamic_housekeeping=false'
- '--docker_only=true'
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- ${CADVISOR_MNT}:/rootfs/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
ports:
- 8077:8080
node-exporter:
image: quay.io/prometheus/node-exporter
container_name: node-exporter
restart: unless-stopped
command:
- '--path.rootfs=/host'
pid: host
ports:
- 9100:9100
volumes:
- '/:/host:ro,rslave'
grafana:
container_name: grafana
image: grafana/grafana:7.5.6
restart: always
ports:
- 3000:3000
volumes:
- ./monitoring/grafana/:/etc/grafana/
prometheus:
container_name: prometheus
image: prom/prometheus:latest
restart: always
ports:
- 9090:9090
volumes:
- ./monitoring/prometheus/:/etc/prometheus/
portainer:
container_name: portainer
image: "portainer/portainer"
restart: always
ports:
- 9000:9000
- 8000:8000
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_volume:/data
volumes:
portainer_volume: