-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcompose.local.yaml
More file actions
77 lines (72 loc) · 1.72 KB
/
compose.local.yaml
File metadata and controls
77 lines (72 loc) · 1.72 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
66
67
68
69
70
71
72
73
74
75
76
77
# compose.local.yaml (Overrides for Local Development)
# Use with: docker compose -f compose.yaml -f compose.local.yaml up
services:
# backend
api:
build:
context: ./apps/api
target: base
environment:
NODE_ENV: development
LOGGING_LEVEL: debug
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/codecrawl_dev
REDIS_URL: redis://redis:6379
REDIS_PASSWORD: ""
ports:
- "${API_PORT_EXTERNAL:-4000}:${API_PORT:-3002}"
volumes:
- ./apps/api:/app
- /app/node_modules
depends_on:
- postgres
- redis
worker:
build:
context: ./apps/api
target: base
environment:
NODE_ENV: development
LOGGING_LEVEL: debug
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/codecrawl_dev
REDIS_URL: redis://redis:6379
REDIS_PASSWORD: ""
volumes:
- ./apps/api:/app
- /app/node_modules
depends_on:
- postgres
- redis
- api
postgres:
image: postgres:15-alpine
networks:
- internal-api-net
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: codecrawl_dev
ports:
- "5432:5432"
volumes:
- postgres_data_local:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d codecrawl_dev"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
networks:
- internal-api-net
ports:
- "6379:6379"
volumes:
- redis_data_local:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data_local:
redis_data_local: