-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (66 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
61
62
63
64
65
66
67
68
69
70
services:
frontend:
image: ghcr.io/sageseekersociety/cheese-frontend:dev
env_file: .env
depends_on:
- backend
ports:
- "4173:80"
backend:
image: ghcr.io/sageseekersociety/cheese-backend:dev
env_file: .env
volumes:
- type: volume
source: cheese_backend_uploads
target: /app/uploads
depends_on:
database:
condition: service_healthy
es:
condition: service_healthy
ports:
- "4174:3000"
database:
image: postgres:16.2
env_file: .env
volumes:
- type: volume
source: cheese_db_pg
target: /var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
start_period: 180s
start_interval: 5s
interval: 1m
timeout: 10s
retries: 3
es:
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.2
env_file: .env
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ELASTIC_PASSWORD=${ELASTICSEARCH_AUTH_PASSWORD}
deploy:
resources:
limits:
memory: 4g
volumes:
- type: volume
source: cheese_es
target: /usr/share/elasticsearch/data
ports:
- "127.0.0.1:9200:9200"
healthcheck:
test:
["CMD-SHELL",
"curl -s --user elastic:${ELASTICSEARCH_AUTH_PASSWORD} -X GET http://localhost:9200/_cluster/health?pretty | grep status | grep -E 'green|yello'"]
start_period: 180s
start_interval: 5s
interval: 1m
timeout: 10s
retries: 3
volumes:
cheese_backend_uploads:
cheese_db_pg:
cheese_es: