-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
87 lines (83 loc) · 2.68 KB
/
Copy pathcompose.dev.yaml
File metadata and controls
87 lines (83 loc) · 2.68 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
services:
app:
build:
target: development
ports:
- '8080:8080'
- '5173:5173'
volumes:
- ./:/app
environment:
PHP_IDE_CONFIG: ${PHP_IDE_CONFIG:-serverName=localhost}
depends_on:
db:
condition: service_healthy
amqp:
condition: service_healthy
centrifugo:
condition: service_healthy
db:
image: pgvector/pgvector:pg18
container_name: noto_db
ports:
- "5432:5432"
environment:
POSTGRES_DB: noto
POSTGRES_USER: app
POSTGRES_PASSWORD: ${DB_PASSWORD:-ChangeMe}
volumes:
- db_data:/var/lib/postgresql
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 5s
timeout: 3s
retries: 6
amqp:
image: rabbitmq:4-management
container_name: noto_amqp
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: ${AMQP_PASSWORD:-guest}
restart: unless-stopped
healthcheck:
test: rabbitmq-diagnostics check_port_connectivity
interval: 5s
timeout: 3s
retries: 6
centrifugo:
image: centrifugo/centrifugo:v6
container_name: noto_centrifugo
ports:
- "8000:8000"
environment:
CENTRIFUGO_CLIENT_ALLOWED_ORIGINS: "*"
CENTRIFUGO_CLIENT_TOKEN_HMAC_SECRET_KEY: ${CENTRIFUGO_SECRET:-ChangeSecret}
CENTRIFUGO_HTTP_API_KEY: ${CENTRIFUGO_API_KEY:-ChangeApiKey}
CENTRIFUGO_LOG_LEVEL: ${CENTRIFUGO_LOG_LEVEL:-info}
CENTRIFUGO_HEALTH_ENABLED: "true"
CENTRIFUGO_ADMIN_ENABLED: "true"
CENTRIFUGO_ADMIN_PASSWORD: ${CENTRIFUGO_ADMIN_PASSWORD:-password}
CENTRIFUGO_ADMIN_SECRET: ${CENTRIFUGO_ADMIN_SECRET:-ChangeMe}
CENTRIFUGO_CHANNEL_NAMESPACES: >-
[
{
"name": "noto-stashes",
"allow_user_limited_channels": true,
"allow_subscribe_for_client": true,
"allow_publish_for_client": false,
"history_size": 100,
"history_ttl": "1h"
}
]
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8000/health"]
interval: 5s
timeout: 3s
retries: 6
volumes:
db_data: