-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
68 lines (61 loc) · 1.57 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
version: '3'
services:
app:
build:
dockerfile: Dockerfile
container_name: app
depends_on:
- postgres
ports:
- "28080:8080"
environment:
SPRING_PROFILES_ACTIVE: docker-compose
postgres:
build:
dockerfile: ./Dockerfile
context: postgres
container_name: postgres
ports:
- "25432:5432"
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data
- ./postgres/postgresql.conf:/etc/postgresql/postgresql.conf
environment:
- POSTGRES_USER=pgadmin
- POSTGRES_PASSWORD=pgadmin
command: postgres -c config_file=/etc/postgresql/postgresql.conf
grafana:
build: './monitoring/config/grafana'
container_name: grafana
ports:
- "23000:3000"
restart: always
volumes:
- ./monitoring/grafana:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- "29090:9090"
restart: always
volumes:
- ./monitoring/config/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--log.level=debug'
wiremock:
image: wiremock/wiremock
container_name: wiremock
ports:
- "28081:8080"
restart: always
volumes:
- ./wiremock/__files:/home/wiremock/__files
- ./wiremock:/home/wiremock
entrypoint: ["/docker-entrypoint.sh", "--print-all-network-traffic", "--disable-gzip", "--verbose"]
volumes:
postgres_data: