-
-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
36 lines (34 loc) · 1.01 KB
/
docker-compose.dev.yml
File metadata and controls
36 lines (34 loc) · 1.01 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
# Optional Docker Postgres for GitMesh local dev.
#
# By default GitMesh uses an embedded PostgreSQL at
# ~/.gitmesh-agents/instances/default/db/. This compose file is only for users
# who prefer running Postgres in Docker.
#
# Usage:
# pnpm db:up # start postgres on localhost:5433
# pnpm db:down # stop and remove the container (volume is preserved)
# pnpm db:logs # tail postgres logs
#
# Then set DATABASE_URL in .env:
# DATABASE_URL=postgres://gitmesh:gitmesh@localhost:5433/gitmesh
services:
postgres:
image: postgres:16-alpine
container_name: gitmesh-dev-postgres
restart: unless-stopped
environment:
POSTGRES_USER: gitmesh
POSTGRES_PASSWORD: gitmesh
POSTGRES_DB: gitmesh
ports:
- "5433:5432"
volumes:
- gitmesh_pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gitmesh -d gitmesh"]
interval: 5s
timeout: 5s
retries: 10
volumes:
gitmesh_pg_data:
name: gitmesh_pg_data