-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
54 lines (49 loc) · 1.53 KB
/
docker-compose.dev.yml
File metadata and controls
54 lines (49 loc) · 1.53 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
# docker-compose.dev.yml -- local development overrides
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build
#
# What this file does:
# - Exposes all service ports directly (no TLS required)
# - Switches Traefik to HTTP-only + insecure dashboard on :8888
# - Enables debug logging everywhere
# - Reduces build workers to 2 (lighter on local machines)
services:
traefik:
command:
- "--api.dashboard=true"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=pushpaka-network"
- "--entrypoints.web.address=:80"
- "--log.level=DEBUG"
ports:
- "80:80"
- "8888:8080" # Traefik dashboard: http://localhost:8888
pushpaka:
environment:
APP_ENV: development
PORT: "8080"
BUILD_WORKERS: "2"
LOG_LEVEL: debug
ports:
- "8080:8080"
labels:
- "traefik.enable=true"
- "traefik.http.routers.pushpaka-api.rule=Host(`localhost`) && PathPrefix(`/api`)"
- "traefik.http.routers.pushpaka-api.entrypoints=web"
pushpaka-dashboard:
environment:
NEXT_PUBLIC_API_URL: http://localhost:8080
NEXT_PUBLIC_WS_URL: ws://localhost:8080
ports:
- "3000:3000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.pushpaka-dashboard.rule=Host(`localhost`)"
- "traefik.http.routers.pushpaka-dashboard.entrypoints=web"
postgres:
ports:
- "5432:5432"
redis:
ports:
- "6379:6379"