-
Notifications
You must be signed in to change notification settings - Fork 480
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
70 lines (65 loc) · 1.84 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
70 lines (65 loc) · 1.84 KB
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
version: '3'
services:
postgres:
image: pgvector/pgvector:pg18
ports:
- "5432:5432"
environment:
- POSTGRES_USER=dotcms
- POSTGRES_PASSWORD=dotcms
- POSTGRES_DB=dotcms
command: postgres -c 'max_connections=400' -c 'shared_buffers=128MB'
volumes:
- postgres-data:/var/lib/postgresql
networks:
- dotcms-net
elasticsearch:
image: opensearchproject/opensearch:1.3.6
ports:
- "9200:9200"
environment:
- discovery.type=single-node
- cluster.name=elastic-cluster
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx1g -XX:-UseContainerSupport"
- plugins.security.disabled=true
ulimits:
memlock:
soft: -1 # Set memlock to unlimited (no soft or hard limit)
hard: -1
nofile:
soft: 65536 # Maximum number of open files for the opensearch user - set to at least 65536
hard: 65536
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
networks:
- dotcms-net
dotcms:
image: ${DOTCMS_IMAGE} # it must be the same version built in the previous step
environment:
CMS_JAVA_OPTS: '-Xmx1g '
LANG: 'C.UTF-8'
TZ: 'UTC'
DB_BASE_URL: "jdbc:postgresql://postgres/dotcms"
DB_USERNAME: "dotcms"
DB_PASSWORD: "dotcms"
DOT_ES_AUTH_BASIC_PASSWORD: 'admin'
DOT_INITIAL_ADMIN_PASSWORD: 'admin'
DOT_ES_ENDPOINTS: 'http://elasticsearch:9200'
#CUSTOM_STARTER_URL: 'https://repo.dotcms.com/artifactory/libs-release-local/com/dotcms/starter/20260629/starter-20260629.zip'
depends_on:
- elasticsearch
- postgres
volumes:
- dotcms-shared:/data/shared
networks:
- dotcms-net
ports:
- "8080:8080"
- "8443:8443"
volumes:
postgres-data:
elasticsearch-data:
dotcms-shared:
networks:
dotcms-net: