-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
33 lines (31 loc) · 1.06 KB
/
docker-compose.dev.yml
File metadata and controls
33 lines (31 loc) · 1.06 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
# Local UI + mock API — no evuproxy on the host, no WireGuard/nftables changes.
#
# docker compose -f docker-compose.dev.yml up --build
#
# Open http://127.0.0.1:9080 — MOCK_API_TOKEN is required (default "dev" below).
# Optional: MOCK_API_BIND=127.0.0.1 for loopback-only mock (not reachable from the UI container).
#
# UI and mock script are bind-mounted: edit web/* or mock_server.py, reload browser
# or `docker compose -f docker-compose.dev.yml restart mock-api` — no rebuild.
services:
mock-api:
build:
context: ./docker/mock-api
dockerfile: Dockerfile
environment:
MOCK_API_TOKEN: ${MOCK_API_TOKEN:-dev}
volumes:
- ./docker/mock-api/mock_server.py:/app/mock_server.py:ro
evuproxy-ui:
build:
context: .
dockerfile: docker/Dockerfile
ports:
- "127.0.0.1:9080:8080"
depends_on:
- mock-api
volumes:
- ./web:/usr/share/nginx/html:ro
- ./docker/nginx.dev.conf:/etc/nginx/conf.d/default.conf:ro
entrypoint: ["/docker-entrypoint.sh"]
command: ["nginx", "-g", "daemon off;"]