-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.compose.yml
More file actions
49 lines (44 loc) · 1.27 KB
/
Copy pathdev.compose.yml
File metadata and controls
49 lines (44 loc) · 1.27 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
# =============================================================================
# AngelaMos | 2026
# dev.compose.yml
# =============================================================================
# Development compose - Nginx + Vite dev server with HMR
# Uses .env.development
# =============================================================================
name: ${APP_NAME:-001}-dev
services:
nginx:
image: nginx:1.27-alpine
container_name: ${APP_NAME:-001}-nginx-dev
ports:
- "${NGINX_HOST_PORT:-62106}:80"
volumes:
- ./infra/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./infra/nginx/dev.nginx:/etc/nginx/conf.d/default.conf:ro
depends_on:
frontend:
condition: service_started
networks:
- app
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: ../infra/docker/vite.dev
container_name: ${APP_NAME:-001}-frontend-dev
ports:
- "${FRONTEND_HOST_PORT:-11849}:5173"
volumes:
- ./frontend:/app
- frontend_modules:/app/node_modules
environment:
- VITE_API_URL=${VITE_API_URL:-/api}
- VITE_APP_TITLE=${VITE_APP_TITLE:-My App}
networks:
- app
restart: unless-stopped
networks:
app:
driver: bridge
volumes:
frontend_modules: