-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 956 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 956 Bytes
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
version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile
ports:
- "4000:4000"
environment:
- NODE_ENV=production
- PORT=4000
- PORT=4000
volumes:
- ./backend/.env:/app/backend/.env:ro
- /Users:/Users:ro
- /tmp:/tmp:ro
container_name: memory-leak-analyzer-backend
restart: unless-stopped
networks:
- analyzer-network
extra_hosts:
- "host.docker.internal:host-gateway"
frontend:
image: node:18-alpine
working_dir: /app
volumes:
- .:/app
ports:
- "3000:3000"
depends_on:
- backend
environment:
- VITE_API_URL=http://backend:4000
command: sh -c "npm install && cd frontend && npm run dev -- --host 0.0.0.0 --port 3000"
container_name: memory-leak-analyzer-frontend
restart: unless-stopped
networks:
- analyzer-network
networks:
analyzer-network:
driver: bridge