-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yaml
More file actions
46 lines (43 loc) · 1.12 KB
/
docker-compose.prod.yaml
File metadata and controls
46 lines (43 loc) · 1.12 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
services:
croncontrol:
image: ghcr.io/croncontrol/croncontrol:latest
ports:
- "8080:8080"
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:16
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${CC_DB_USER:-croncontrol}
POSTGRES_PASSWORD: ${CC_DB_PASSWORD:-croncontrol}
POSTGRES_DB: ${CC_DB_NAME:-croncontrol}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${CC_DB_USER:-croncontrol}"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
opensearch:
image: opensearchproject/opensearch:2
profiles: ["opensearch"]
environment:
discovery.type: single-node
DISABLE_SECURITY_PLUGIN: "true"
OPENSEARCH_JAVA_OPTS: "-Xms1g -Xmx1g"
volumes:
- osdata:/usr/share/opensearch/data
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:9200/_cluster/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
pgdata:
osdata: