forked from b-chmiel/ZPI-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
107 lines (105 loc) · 3.08 KB
/
docker-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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: "3.1"
services:
zpi-ams-service:
build: ./ZPI-AMS-service
ports:
- "10000:10000"
environment:
- SPRING_MAIL_HOST=mail
- SPRING_MAIL_PASSWORD=admin
- SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH=true
- SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE=false
links:
- "mailserver:mail"
db:
image: postgres:14.1
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=analysis_db
zpi-analysis-service:
build: ./ZPI-analysis-service
depends_on:
- db
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/analysis_db
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=postgres
zpi-authorize-service:
build: ./ZPI-authorize-service
links:
- "zpi-ams-service:ams"
- "zpi-analysis-service:analysis"
- "mailserver:mail"
environment:
- SPRING_MAIL_HOST=mail
- SPRING_MAIL_PASSWORD=admin
- SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH=true
- SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE=false
- AMS_URL=http://ams:10000
- ANALYSIS_URL=http://analysis:5000
zpi-demo-ui:
build: ./ZPI-demo-UI
environment:
- PORT=3000
- REACT_APP_AUTH_HOST=https://auth.zpi.fuf.me
- REACT_APP_AUTH_CLIENT_ID=2
nginx:
build: ./proxy
ports:
- "80:80"
- "443:443"
links:
- "zpi-demo-ui:demo"
- "zpi-ams-service:ams"
- "zpi-authorize-service:auth"
- "pgadmin:pgadmin"
- "grafana:grafana"
mailserver:
image: docker.io/mailserver/docker-mailserver:10.3.0
container_name: mailserver
# If the FQDN for your mail-server is only two labels (eg: example.com),
# you can assign this entirely to `hostname` and remove `domainname`.
hostname: mail
domainname: zpi.com
env_file: docker-mailserver/mailserver.env
# More information about the mail-server ports:
# https://docker-mailserver.github.io/docker-mailserver/edge/config/security/understanding-the-ports/
# To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
ports:
- "35:25" # SMTP (explicit TLS => STARTTLS)
- "143:143" # IMAP4 (explicit TLS => STARTTLS)
- "465:465" # ESMTP (implicit TLS)
- "587:587" # ESMTP (explicit TLS => STARTTLS)
- "993:993" # IMAP4 (implicit TLS)
volumes:
- mail-data:/var/mail/
- mail-state:/var/mail-state/
- mail-logs:/var/log/mail/
- ./docker-mailserver/config/:/tmp/docker-mailserver/
- /etc/localtime:/etc/localtime:ro
stop_grace_period: 1m
cap_add:
- NET_ADMIN
- SYS_PTRACE
pgadmin:
image: dpage/pgadmin4
depends_on:
- db
environment:
- PGADMIN_DEFAULT_PASSWORD=admin
- PGADMIN_LISTEN_PORT=8888
grafana:
build: "./grafana"
depends_on:
- db
volumes:
mail-data:
mail-state:
mail-logs:
db-data: