-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
124 lines (118 loc) · 3.4 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
version: '3.4'
services:
apm-server:
image: docker.elastic.co/apm/apm-server:7.13.2
depends_on:
elasticsearch:
condition: service_healthy
kibana:
condition: service_healthy
cap_add: ["CHOWN", "DAC_OVERRIDE", "SETGID", "SETUID"]
cap_drop: ["ALL"]
ports:
- 8200:8200
networks:
- platinum
command: >
apm-server -e
-E apm-server.rum.enabled=true
-E setup.kibana.host=kibana:5601
-E setup.template.settings.index.number_of_replicas=0
-E apm-server.kibana.enabled=true
-E apm-server.kibana.host=kibana:5601
-E output.elasticsearch.hosts=["elasticsearch:9200"]
healthcheck:
interval: 10s
retries: 12
test: curl --write-out 'HTTP %{http_code}' --fail --silent --output /dev/null http://localhost:8200/
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.2
environment:
- bootstrap.memory_lock=true
- cluster.name=docker-cluster
- cluster.routing.allocation.disk.threshold_enabled=false
- discovery.type=single-node
- ES_JAVA_OPTS=-XX:UseAVX=2 -Xms1g -Xmx1g
ulimits:
memlock:
hard: -1
soft: -1
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- platinum
healthcheck:
interval: 20s
retries: 10
test: curl -s http://localhost:9200/_cluster/health | grep -vq '"status":"red"'
kibana:
image: docker.elastic.co/kibana/kibana:7.13.2
depends_on:
elasticsearch:
condition: service_healthy
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
ports:
- 5601:5601
networks:
- platinum
healthcheck:
interval: 10s
retries: 20
test: curl --write-out 'HTTP %{http_code}' --fail --silent --output /dev/null http://localhost:5601/api/status
postgres:
image: postgres:latest
environment:
POSTGRES_PASSWORD: 12345678
ports:
- '5431:5432'
expose:
- '5432'
networks:
- platinum
platinum:
image: bimaagung/platinum-maju-jaya:latest
environment:
APP_NAME: PLATINUM_MAJU_JAYA
VERSION: 1.0.0
PORT: 3000
HOST: 0.0.0.0
DB_USERNAME: postgres
DB_PASSWORD: 12345678
DB_HOSTNAME: postgres
DB_PORT: 5432
DB_NAME: platinum_db
DB_DIALECT: postgres
USE_APM: true
JWT_KEY_SECRET: JHJH768tnjsl%^%&^567565HGHf87GJsdHGHJ
ITEM_URL : https://res.cloudinary.com/dnvltueqb/image/upload/v1663815144/default%20image/default_product_w8fe1a.jpg
PROFIL_URL : https://res.cloudinary.com/dnvltueqb/image/upload/v1663815145/default%20image/profile_xzrsh7.png
CLOUD_NAME : dnvltueqb
API_KEY : 131712519741951
API_SECRET : hj0ZgOKOwG8l5o8vpnSwPtR6US0
CLIENT_ID : 323482346507-e7l0nhioj752q174j326t11ja8v9oq28.apps.googleusercontent.com
MAILER_SMTP_HOST: smtp.mailtrap.io
MAILER_SMTP_PORT: 465
MAILER_SECURE: false
MAILER_AUTH_USER: ec437b9b5faefa
MAILER_AUTH_PASSWORD: 2d41ee0da2a5cd
MAILER_SENDER_NAME: majujaya
MAILER_SENDER_EMAIL: noreaplymajujaya@gmail.com
SERVER_URL: http://apm-server:8200
ports:
- '3000:3000'
expose:
- '3000'
networks:
- platinum
depends_on:
- postgres
volumes:
esdata:
driver: local
networks:
platinum:
driver: bridge