-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
65 lines (63 loc) · 1.42 KB
/
docker-compose-dev.yml
File metadata and controls
65 lines (63 loc) · 1.42 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
54
55
56
57
58
59
60
61
62
63
64
65
services:
redis:
image: redis:7-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
web:
build:
context: .
dockerfile: web/dockerfile.dev
image: app-web-dev
ports:
- "3000:3000"
develop:
watch:
- action: sync
path: ./web
target: /app/web
ignore:
- node_modules
- action: sync
path: ./packages/eslint-config
target: /app/packages/eslint-config
- action: rebuild
path: ./web/package.json
- action: rebuild
path: ./web/pnpm-lock.yaml
- action: rebuild
path: ./packages/eslint-config/package.json
api:
build:
context: api
dockerfile: dockerfile.dev
image: app-api-dev
ports:
- "4000:4000"
env_file:
- ./api/.env
environment:
APP_HOST: "0.0.0.0"
APP_PORT: "4000"
NODE_ENV: "development"
APP_REDIS: "redis://redis:6379"
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
redis:
condition: service_healthy
develop:
watch:
- action: sync
path: ./api
target: /app
ignore:
- node_modules
- action: rebuild
path: ./api/package.json
- action: rebuild
path: ./api/pnpm-lock.yaml