-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (59 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
59 lines (59 loc) · 1.41 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
services:
postgres:
container_name: postgresPractice
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
POSTGRES_DB: bikeShare
PGDATA: /data/postgres
ports:
- "5432:5432"
restart: always
sharing:
build:
context: .
container_name: share_service
image: shareservice:1.3.5
ports:
- "8080:8080"
environment:
SPRING_DATASOURSE_PASSWORD: root
SPRING_DATASOURSE_USERNAME: postgres
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/bikeShare
SPRING_JPA_HIBERNATE_DDL-AUTO: none
SPRING_FLYWAY_ENABLED: true
depends_on:
- postgres
healthcheck:
test: [ "CMD", "curl", "-f", "http://sharing:8080/ping" ]
interval: 20s
timeout: 10s
retries: 10
start_period: 5s
prometheus:
container_name: prometheus
image: prom/prometheus
ports:
- "90:9090"
volumes:
- ./src/main/resources/prometheus-docker.yml:/etc/prometheus/prometheus.yml
# - ./src/main/resources/prometheus.yml:/etc/prometheus/prometheus.yml
restart: always
# depends_on:
# - sharing
grafana:
container_name: grafana
image: grafana/grafana
ports:
- "3000:3000"
depends_on:
- prometheus
mongo:
container_name: mongodb
image: mongo
ports:
- "27017:27017"
volumes:
- ./mongo:/data/db
restart: always