forked from DragosOnisei/FrameComment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
53 lines (50 loc) · 1.65 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
53 lines (50 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
# docker-compose.dev.yml — local development helpers
#
# Starts ONLY postgres + redis on your Mac, exposed on localhost.
# The Next.js app itself runs natively with `npm run dev` for hot reload.
#
# Usage:
# docker compose -f docker-compose.dev.yml up -d # start
# docker compose -f docker-compose.dev.yml logs -f # tail logs
# docker compose -f docker-compose.dev.yml down # stop
# docker compose -f docker-compose.dev.yml down -v # stop + wipe DB
#
# Credentials are intentionally simple — this stack only listens on
# 127.0.0.1, so it's not reachable from your LAN or the internet.
services:
postgres:
image: postgres:18-alpine
container_name: framecomment-dev-postgres
restart: unless-stopped
environment:
POSTGRES_USER: framecomment
POSTGRES_PASSWORD: devpassword
POSTGRES_DB: framecomment
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --locale=C"
PGDATA: /var/lib/postgresql/data
ports:
- "127.0.0.1:5432:5432"
volumes:
- framecomment-dev-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U framecomment"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:8-alpine
container_name: framecomment-dev-redis
restart: unless-stopped
command: redis-server --appendonly yes --requirepass devpassword
ports:
- "127.0.0.1:6379:6379"
volumes:
- framecomment-dev-redis:/data
healthcheck:
test: ["CMD", "redis-cli", "--no-auth-warning", "-a", "devpassword", "ping"]
interval: 5s
timeout: 5s
retries: 5
volumes:
framecomment-dev-postgres:
framecomment-dev-redis: