-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
60 lines (58 loc) · 1.21 KB
/
compose.dev.yaml
File metadata and controls
60 lines (58 loc) · 1.21 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
services:
backend:
build:
context: .
dockerfile: Dockerfile
ports:
- "${BACKEND_PORT:-8000}:8000"
volumes:
- ./data:/data
environment:
- DATA_DIR=/data
- HOST=0.0.0.0
- PORT=8000
- REPO_URL=${REPO_URL:-}
- GITHUB_TOKEN=${GITHUB_TOKEN:-}
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8000/api/repo')",
]
interval: 5s
timeout: 3s
retries: 10
start_period: 10s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "${FRONTEND_PORT:-3000}:3000"
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public
environment:
- API_URL=http://backend:8000
- WATCHPACK_POLLING=true
depends_on:
backend:
condition: service_healthy
tunnel:
image: cloudflare/cloudflared
restart: unless-stopped
profiles:
- tunnel
env_file:
- .env
command:
- tunnel
- --no-autoupdate
- --no-chunked-encoding
- run
network_mode: host
depends_on:
- frontend
- backend