-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-consul.yml
40 lines (37 loc) · 996 Bytes
/
docker-compose-consul.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
version: "3.7"
services:
apiinsights:
build:
context: ./apiinsights
dockerfile: Dockerfile
volumes:
- ~/.aspnet/https:/https:ro
depends_on:
- consulservice
consulservice:
container_name: consul_service
image: consul:1.7.3
restart: unless-stopped
ports:
- "8500:8500" # HTTP API and UI port
- "8600:8600/udp" # DNS Port
command: consul agent -dev -config-dir /etc/consul.d
volumes:
- ./consul.server.json:/etc/consul.d/consul.server.json
prometheusservice:
container_name: prometheus_service
image: prom/prometheus:v2.18.1
restart: unless-stopped
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- "9090:9090"
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention=200h"
- "--web.enable-lifecycle"
networks:
default:
name: consul.network
driver: bridge