-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
32 lines (31 loc) · 1 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
32 lines (31 loc) · 1 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
# Hot-reload overrides (ARCHITECTURE §15): `docker compose -f docker-compose.yml \
# -f docker-compose.dev.yml up`.
#
# These bind-mount the repo and run the dev servers. NOTE: this expects node_modules
# to already exist on the host (run `pnpm install` first); the bind mount shadows the
# image's node_modules. M0 hardens the dev workflow (anonymous-volume node_modules).
services:
api:
build:
context: .
dockerfile: infra/docker/Dockerfile.api
target: build
command: ['pnpm', '--filter', '@rytask/api', 'dev']
working_dir: /repo
volumes:
- ./:/repo
environment:
DATABASE_URL: postgres://rytask:rytask@postgres:5432/rytask
REDIS_URL: redis://redis:6379
web:
build:
context: .
dockerfile: infra/docker/Dockerfile.web
target: build
command: ['pnpm', '--filter', '@rytask/web', 'dev']
working_dir: /repo
volumes:
- ./:/repo
environment:
API_URL: http://api:3001
NEXT_PUBLIC_API_URL: http://localhost:3001