-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (59 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
62 lines (59 loc) · 1.37 KB
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
version: "3"
services:
example-prometheus:
image: prom/prometheus:latest
restart: unless-stopped
container_name: example-prometheus
ports:
- 9090:9090
volumes:
- "./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml"
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--web.enable-admin-api'
- '--web.enable-lifecycle'
networks:
services-network:
aliases:
- example-prometheus
app:
container_name: app
restart: on-failure
build:
context: .
dockerfile: ./inference/Dockerfile
environment:
PYTHONPATH: /src
DEBUG_METRICS: "false"
DB_URI: "postgresql://admin:admin@database:5432/sqlalchemy"
env_file:
- ./.env
volumes:
- .:/src
ports:
- 1000:10000
networks:
services-network:
aliases:
- app
example-grafana:
image: grafana/grafana:latest
restart: unless-stopped
user: "472"
container_name: example-grafana
depends_on:
- example-prometheus
ports:
- 3000:3000
volumes:
- ./monitoring/datasource.yml:/etc/grafana/provisioning/datasource.yml
env_file:
- ./monitoring/config.monitoring
networks:
services-network:
aliases:
- example-grafana
networks:
services-network:
name: services-network
driver: bridge