-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 863 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (40 loc) · 863 Bytes
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
services:
db:
image: pgvector/pgvector:pg16
container_name: playmcp_db
ports:
- '5433:5432'
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: 1234
POSTGRES_DB: playmcp
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U root -d playmcp']
interval: 10s
timeout: 5s
retries: 5
app:
build:
context: .
dockerfile: Dockerfile
container_name: playmcp_app
ports:
- '3000:3000'
environment:
DB_HOST: db
DB_PORT: 5432
DB_USERNAME: root
DB_PASSWORD: 1234
DB_DATABASE: playmcp
PORT: 3000
KAKAO_LOCAL_API: ${KAKAO_LOCAL_API}
env_file:
- .env
depends_on:
db:
condition: service_healthy
restart: unless-stopped
volumes:
postgres_data: