-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (60 loc) · 1.64 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
version: '3'
name: fleetyards-dev
services:
# app:
# build:
# context: .
# dockerfile: Dockerfile.dev
# ports:
# - 8270:3000
# - 3136:3136
# - 3137:3137
# environment:
# RAILS_ENV: development
# DB_HOST: postgres
# REDIS_URL: redis://redis:6379
# OPENSEARCH_URL: opensearch:9200
# # INITIAL_DB_SETUP: 1
# UNSAFE: 1
# RAILS_SERVE_STATIC_FILES: 1
# DOMAIN: fleetyards.test
# PORT: 3000
# ON_SUBDOMAIN: false
# depends_on:
# - postgres
# - redis
# - opensearch
postgres:
image: postgres:13-alpine
restart: always
environment:
POSTGRES_USER: root
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 8271:5432
volumes:
- ./data/postgres-local:/var/lib/postgresql/data
redis:
image: redis:6.2.11-alpine
ports:
- 8272:6379
opensearch:
image: opensearchproject/opensearch:2
environment:
- cluster.name=fleetyards-opensearch-cluster
- node.name=fleetyards-opensearch-node1
- discovery.type=single-node
- plugins.security.disabled=true
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
hard: 65536
volumes:
- ./data/opensearch-data:/usr/share/opensearch/data
ports:
- 8273:9200