This repository has been archived by the owner on Jun 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
148 lines (147 loc) · 3.73 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
version: '3.4'
services:
web:
image: virtudoc/web
build:
context: .
dockerfile: Dockerfile
depends_on:
- db
- minio
- email
ports:
- '8080:8080'
volumes:
- ./:/app
- ./.m2-cache:/root/.m2
- logdata:/logs
environment:
JDBC_DATABASE_URL: jdbc:postgresql://db:5432/virtudoc
JDBC_DATABASE_USERNAME: root
JDBC_DATABASE_PASSWORD: virtudoc
SMTP_SERVER: email
SMTP_USERNAME: testuser@dev.local
SMTP_PASSWORD: testpassword
SMTP_PORT: 25
AWS_ACCESS_KEY_ID: virtudoc
AWS_SECRET_ACCESS_KEY: virtudoc
AWS_BUCKET: virtudoc
AWS_ENDPOINT: http://minio:9000
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--output", "/dev/null", "--head", "--write-out", "%{http_code}", "http://localhost:8080"]
interval: 10s
timeout: 10s
retries: 3
start_period: 60s
web-cday:
image: nginx:1.21.6-alpine
ports:
- '8081:80'
volumes:
- ./docs:/usr/share/nginx/html
db:
image: postgres:13.5-alpine
ports:
- "55432:5432"
restart: unless-stopped
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "root" ]
timeout: 30s
interval: 10s
retries: 10
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: virtudoc
POSTGRES_DB: virtudoc
proxy:
image: virtudoc/proxy
build:
context: ./proxy
dockerfile: proxy.Dockerfile
depends_on:
- web
ports:
- "443:443"
- "80:80"
volumes:
- ./proxy/cert:/cert
restart: always
email:
image: rnwood/smtp4dev:3.1.3-ci20211206101
ports:
- "3000:80"
minio:
image: quay.io/minio/minio:RELEASE.2022-01-28T02-28-16Z
volumes:
- s3data:/data
ports:
- "9001:9001"
- "9000:9000"
environment:
MINIO_ROOT_USER: virtudoc
MINIO_ROOT_PASSWORD: virtudoc
MINIO_ACCESS_KEY: virtudoc
MINIO_SECRET_KEY: virtudoc
command: server --console-address ":9001" --address 0.0.0.0:9000 /data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.0
environment:
- ES_JAVA_OPTS=-Xms2g -Xmx2g
- xpack.license.self_generated.type=basic
- discovery.type=single-node
- ELASTIC_PASSWORD=elastic
- xpack.security.enabled=false
- xpack.security.authc.api_key.enabled=false
- xpack.monitoring.collection.enabled=false
ports:
- "9200:9200"
- "9300:9300"
restart: always
profiles:
- debug
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.17.0
environment:
- ELASTICSEARCH_USERNAME=elastic
- ELASTICSEARCH_PASSWORD=elastic
- xpack.security.enabled=false
- xpack.ingestManager.fleet.tlsCheckDisabled=true
ports:
- "5601:5601"
profiles:
- debug
restart: always
logstash:
container_name: logstash
image: docker.elastic.co/logstash/logstash:7.17.0
volumes:
- ./dev/elk/logstash/pipeline/:/usr/share/logstash/pipeline/
environment:
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
profiles:
- debug
restart: always
filebeat:
container_name: filebeat
image: docker.elastic.co/beats/filebeat:7.17.0
restart: always
command: filebeat -e --strict.perms=false
environment:
LS_JAVA_OPTS: -Xms256m -Xmx256m
volumes:
- logdata:/logs
- ./dev/elk/filebeat.yml:/usr/share/filebeat/filebeat.yml
profiles:
- debug
volumes:
dbdata:
logdata:
s3data: