-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
56 lines (54 loc) · 1.47 KB
/
docker-compose.dev.yml
File metadata and controls
56 lines (54 loc) · 1.47 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
services:
api:
build:
context: ./api
dockerfile: Dockerfile.dev
container_name: pbsmon-api-dev
restart: unless-stopped
ports:
- "4000:4000"
environment:
- NODE_ENV=development
- PORT=4000
- MOCK_PBS_DATA=true
- PERUN_DATA_PATH=data/perun
- SESSION_SECRET=your-development-session-secret
- MOCK_ADMIN=true
env_file:
- ./api/.env
volumes:
- ./api/src:/app/src
- ./api/package.json:/app/package.json
- ./api/tsconfig.json:/app/tsconfig.json
- ./api/tsconfig.build.json:/app/tsconfig.build.json
- ./api/nest-cli.json:/app/nest-cli.json
- ./api/data:/app/data
networks:
- pbsmon-dev-network
command: npm run start:dev
web:
build:
context: ./web
dockerfile: Dockerfile.dev
container_name: pbsmon-web-dev
restart: unless-stopped
ports:
- "5173:5173"
environment:
- NODE_ENV=development
- API_BASE_URL=http://localhost:4000
volumes:
- ./web/src:/app/src
- ./web/public:/app/public
- ./web/index.html:/app/index.html
- ./web/package.json:/app/package.json
- ./web/tsconfig.json:/app/tsconfig.json
- ./web/vite.config.js:/app/vite.config.js
- ./web/vite-plugin-api-client.js:/app/vite-plugin-api-client.js
- ./web/scripts:/app/scripts
networks:
- pbsmon-dev-network
command: npm run dev -- --host 0.0.0.0
networks:
pbsmon-dev-network:
driver: bridge