-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (57 loc) · 1.65 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (57 loc) · 1.65 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
services:
api:
build: .
container_name: communitypro-api
profiles: ["app"]
env_file:
- path: .env
required: false
environment:
ASPNETCORE_ENVIRONMENT: Development
# why: blank DATABASE_URL so a deployment URL in .env can never hijack the local stack.
DATABASE_URL: ""
ConnectionStrings__Default: Host=postgres;Port=5432;Database=communitypro;Username=communitypro;Password=communitypro
MEILISEARCH_HOST: http://meilisearch:7700
ports:
- "5080:8080"
depends_on:
postgres:
condition: service_healthy
meilisearch:
condition: service_healthy
postgres:
image: postgres:16
container_name: communitypro-postgres
environment:
POSTGRES_DB: communitypro
POSTGRES_USER: communitypro
POSTGRES_PASSWORD: communitypro
# why: host port 5434 — a native Windows PostgreSQL service owns 5432 and
# converge-postgres owns 5433 on this machine.
ports:
- "5434:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U communitypro -d communitypro"]
interval: 5s
timeout: 5s
retries: 10
meilisearch:
image: getmeili/meilisearch:v1.15
container_name: communitypro-meilisearch
environment:
MEILI_MASTER_KEY: communitypro-local-master-key
MEILI_ENV: development
ports:
- "7700:7700"
volumes:
- meilisearch-data:/meili_data
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:7700/health || exit 1"]
interval: 5s
timeout: 5s
retries: 10
volumes:
postgres-data:
meilisearch-data: