-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (60 loc) · 1.44 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
version: '3'
services:
db:
image: "postgres:alpine"
environment:
POSTGRES_DB: "postgres"
POSTGRES_USER: "db"
POSTGRES_PASSWORD: "secret"
ports:
- "5432:5432"
elasticsearch:
image: arm64v8/elasticsearch:8.12.1
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- cluster.name=docker-cluster
- http.port=9200
- http.cors.enabled=true
- http.cors.allow-origin=http://localhost:1358,http://127.0.0.1:1358
- http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
- http.cors.allow-credentials=true
- http.max_content_length=10MB
- bootstrap.memory_lock=true
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
- "9300:9300"
dejavu:
image: appbaseio/dejavu:3.6.0-amd64
ports:
- '1358:1358'
redis:
image: redis:alpine
ports:
- '6379:6379'
restart: unless-stopped
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- 8081:8081
restart: unless-stopped
web:
build: .
ports:
- "3000:3000"
volumes:
- .:/app
environment:
DB_HOST: db
DB_PASSWORD: secret
PGHOST: db
PGUSER: db
PGPASSWORD: secret
PGDATABASE: postgres
ELASTICSEARCH_URL: "http://elasticsearch:9200"