-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
54 lines (50 loc) · 1.17 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
54 lines (50 loc) · 1.17 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
services:
backend:
build:
context: ./backend
target: development
command: npm run dev
environment:
NODE_ENV: development
PORT: 3001
RATE_LIMIT_REDIS_URL: ${RATE_LIMIT_REDIS_URL:-redis://redis:6379/0}
volumes:
- ./backend:/app
- backend_node_modules:/app/node_modules
frontend:
build:
context: ./frontend
target: development
command: npm run dev -- --host 0.0.0.0 --port 3000
environment:
VITE_PROXY_TARGET: http://backend:3001
volumes:
- ./frontend:/app
- frontend_node_modules:/app/node_modules
telegram-bot:
command: python -m bot
volumes:
- ./bot:/app
cypress:
image: cypress/included:13.17.0
working_dir: /app
depends_on:
- frontend
environment:
CYPRESS_baseUrl: http://frontend:3000
volumes:
- ./frontend:/app
entrypoint:
- /bin/sh
- -c
- |
for i in $(seq 1 60); do
wget -qO- http://frontend:3000 >/dev/null 2>&1 && break
sleep 2
done
cypress run --browser electron
networks:
- app_public
volumes:
backend_node_modules:
frontend_node_modules: