-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
145 lines (130 loc) · 3.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
145 lines (130 loc) · 3.35 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
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
version: '3.3'
services:
sveltekit:
container_name: sveltekit-container
restart: unless-stopped
build:
context: ./app
environment:
- PORT=3000
- ORIGIN=http://176.109.106.238
volumes:
- ./app/static:/app/static
ports:
- 80:3000
depends_on:
- redis
redis:
container_name: redis
image: redis:7.2.3-bookworm
restart: always
command: redis-server --save 20 1 --loglevel warning
volumes:
- ./volumes/redis/:/data
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 60s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: "1.00"
memory: 4G
chroma:
container_name: chromadb
restart: unless-stopped
image: ghcr.io/chroma-core/chroma:latest
environment:
- IS_PERSISTENT=TRUE
- ALLOW_RESET=TRUE
- CHROMA_HOST_PORT=8000
volumes:
- ./volumes/chroma_index_data:/chroma/.chroma/index
ports:
- 8003:8000
healthcheck:
test: curl --fail localhost:8000/api/v1/heartbeat || exit 1
interval: 60s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: "1.00"
memory: 4G
nginx:
image: nginx
container_name: nginx
ports:
- 80:80
- 443:443
restart: unless-stopped
volumes:
- ../nginx/nginx.conf:/etc/nginx/nginx.conf
- ../certbot/conf:/etc/letsencrypt
- ../certbot/www:/var/www/certbot
postgres:
image: postgres:16.3-alpine3.18
restart: always
# shm_size: 128mb
environment:
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_DB=$POSTGRES_DB
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
certbot:
image: certbot/certbot:latest
#docker-compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ --dry-run -d domain_name -
#docker-compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ -d domain_name
volumes:
- "./certbot/conf:/etc/letsencrypt"
- "./certbot/www:/var/www/certbot"
opensearch:
image: opensearchproject/opensearch:${OPENSEARCH_VERSION:-latest}
container_name: unspsc-opensearch
environment:
discovery.type: single-node
node.name: opensearch
OPENSEARCH_JAVA_OPTS: -Xms512m -Xmx512m
OPENSEARCH_INITIAL_ADMIN_PASSWORD: ${OPENSEARCH_INITIAL_ADMIN_PASSWORD}
plugins.security.disabled: true
DISABLE_INSTALL_DEMO_CONFIG: true
plugins.ml_commons.only_run_on_ml_node: false
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- opensearch-data:/usr/share/opensearch/data
ports:
- 9200:9200
- 9600:9600
networks:
- opensearch-net
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:${OPENSEARCH_DASHBOARDS_VERSION:-latest}
container_name: opensearch-dashboards
ports:
- 5601:5601
expose:
- "5601"
environment:
OPENSEARCH_HOSTS: '["http://opensearch:9200"]'
networks:
- opensearch-net
depends_on:
- opensearch
volumes:
postgres-data: {}
opensearch-data: {}
networks:
opensearch-net:
driver: bridge