-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
48 lines (46 loc) · 1.45 KB
/
docker-compose.dev.yml
File metadata and controls
48 lines (46 loc) · 1.45 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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
restart: unless-stopped
environment:
DATABASE_URL: sqlite:////app/data/app.db?mode=rwc
JWT_SECRET: ${JWT_SECRET:-dev-secret-change-in-production}
RATE_LIMIT_PER_SECOND: ${RATE_LIMIT_PER_SECOND:-1000}
RATE_LIMIT_BURST: ${RATE_LIMIT_BURST:-2000}
FRONTEND_URL: http://localhost:1420
RUST_LOG: ${RUST_LOG:-debug}
AES_SECRET: ${AES_SECRET:-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=}
OAUTH_CLIENT_ID: ${OAUTH_CLIENT_ID:-}
OAUTH_CLIENT_SECRET: ${OAUTH_CLIENT_SECRET:-}
GIT_INTERNAL_HOST: ${GIT_INTERNAL_HOST:-host.docker.internal}
WEBHOOK_BASE_URL: ${WEBHOOK_BASE_URL:-http://host.docker.internal:8000}
ports:
- "8000:8000"
volumes:
- ./backend:/app
- backend_cargo_registry:/usr/local/cargo/registry
- backend_cargo_git:/usr/local/cargo/git
- backend_target:/app/target
- ./backend/data:/app/data
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
restart: unless-stopped
environment:
JWT_SECRET: ${JWT_SECRET:-dev-secret-change-in-production}
BACKEND_URL: http://backend:8000
ports:
- "1420:1420"
volumes:
- ./frontend:/app
- frontend_node_modules:/app/node_modules
depends_on:
- backend
volumes:
backend_cargo_registry:
backend_cargo_git:
backend_target:
frontend_node_modules: