This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yaml
93 lines (90 loc) · 2.35 KB
/
compose.yaml
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
88
89
90
91
version: "3.9"
services:
backend:
image: ghcr.io/pixselve-school/tp1-wm:master
depends_on:
- db
- rabbitmq
environment:
- DB_HOST=db
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- DB_DATABASE=postgres
- RABBITMQ_URL=amqp://guest:guest@rabbitmq:5672
- DEFAULT_USER_PASS=admin
- DEFAULT_USER_EMAIL=admin@administration.fr
- FRONTEND_URL=http://localhost/
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: postgres
volumes:
- ./db-data:/var/lib/postgresql/data
nginx:
image: nginx:latest
depends_on:
- backend
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./certs:/etc/nginx/certs
profiles:
- standard
nginx-monitoring:
image: nginx:latest
depends_on:
- backend
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx-monito.conf:/etc/nginx/nginx.conf
- ./certs:/etc/nginx/certs
profiles:
- monitoring
quarkus:
image: ghcr.io/pixselve-school/quarkus-wm-project:master
environment:
- RABBITMQ_USERNAME=guest
- RABBITMQ_PASSWORD=guest
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_PORT=5672
- QUARKUS_MAILER_HOST=smtp
rabbitmq:
image: rabbitmq:3.11.3-management-alpine
volumes:
- "./rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins"
smtp:
image: soulteary/maildev
prometheus:
image: prom/prometheus
depends_on:
- backend
- quarkus
- rabbitmq
volumes:
- prometheus-data:/prometheus
- ./profiling/prometheus.yml:/etc/prometheus/prometheus.yml
profiles:
- monitoring
grafana:
image: grafana/grafana:latest
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
- GF_SERVER_SERVE_FROM_SUB_PATH=true
volumes:
- ./profiling/grafana-dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ./profiling/grafana-datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
- ./profiling/dashboards/:/var/lib/grafana/dashboards
- ./profiling/grafana.ini:/etc/grafana/grafana.ini
profiles:
- monitoring
front:
image: ghcr.io/pixselve-school/wm-projet:main
volumes:
prometheus-data: