-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
23 lines (22 loc) · 856 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
23 lines (22 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Dev overlay: builds the `dev` Dockerfile stage, bind-mounts source for hot reload,
# and uses a named volume for node_modules — argon2's native binaries are
# platform-specific, so a host-mounted node_modules built on macOS/Windows would crash
# inside this Linux container.
services:
app:
build:
target: dev
env_file:
- .env.development
environment:
# Overrides whatever .env.development says — inside the compose network the
# database is reachable at the `postgres` service name, not `localhost`.
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/app?schema=public
volumes:
- ./src:/app/src
- ./prisma:/app/prisma
- ./tsconfig.json:/app/tsconfig.json
- ./tsconfig.build.json:/app/tsconfig.build.json
- node_modules:/app/node_modules
volumes:
node_modules: