forked from CoreBunch/Instatic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (25 loc) · 843 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
27 lines (25 loc) · 843 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
# Local-development Postgres service.
#
# Used by `bun run dev` when DATABASE_URL points at Postgres — the dev script
# brings this service up automatically with `docker compose up -d postgres`.
# You usually do NOT need to run anything from this file by hand.
#
# By default, `bun run dev` uses SQLite (no Docker). Set
# `DATABASE_URL=postgres://...` in your environment if you want to develop
# against the Postgres mode instead.
#
# For a fully-containerized stack (closer to production), use:
# docker compose -f compose.prod.yml -f compose.build.yml up --build
services:
postgres:
image: postgres:16
environment:
POSTGRES_DB: instatic
POSTGRES_USER: instatic
POSTGRES_PASSWORD: instatic
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: