-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
87 lines (83 loc) · 1.83 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
version: "3.9"
services:
spring-app:
container_name: spring-app
build:
context: ./YouQuiz
dockerfile: Dockerfile
ports:
- "8082:8082"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://psql-db:5432/youquiz
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=3ea14367A4
networks:
- youquiz
depends_on:
- psql-db
psql-db:
container_name: psql-db
image: "postgres:15"
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_DB: "youquiz"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "3ea14367A4"
volumes:
- postgres-db:/var/lib/postgresql/data
networks:
- youquiz
sonarqube:
image: sonarqube:lts
ports:
- "9000:9000"
networks:
- youquiz
environment:
- SONAR_FORCEAUTHENTICATION=false
prometheus:
image: prom/prometheus:v2.44.0
container_name: prometheus
networks:
- youquiz
ports:
- "9090:9090"
volumes:
- ./YouQuiz/monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:9.5.2
container_name: grafana
networks:
- youquiz
ports:
- "3000:3000"
restart: unless-stopped
volumes:
- ./YouQuiz/monitoring/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
youquiz_front:
container_name: youquiz_front
build:
context: ./YouQuiz_front
dockerfile: Dockerfile.dev
ports:
- "4200:4200"
expose:
- "4200"
environment:
- MOD=dev
volumes:
- ./YouQuiz_front:/app/youquiz_front
- /app/youquiz_front/node_modules
depends_on:
- spring-app
networks:
- youquiz
networks:
youquiz:
name: youquiz
driver: bridge
volumes:
postgres-db:
driver: local