-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (43 loc) · 1.01 KB
/
docker-compose.yml
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
services:
backend-dev:
build:
context: backend
dockerfile: ./development.Dockerfile
container_name: backend-dev
restart: unless-stopped
working_dir: /app
user: "1000:1000"
volumes:
- ./backend:/app
- /etc/localtime:/etc/localtime:ro
ports:
- "5768:5768"
environment:
- BACKEND_LISTEN_PORT=5768
- BACKEND_LISTEN_HOST=0.0.0.0
- BACKEND_REDIS_HOST=redis-dev
command: yarn dev
tty: true
redis-dev:
image: redis:alpine
container_name: redis-dev
restart: unless-stopped
user: "1000:1000"
ports:
- "6379:6379"
volumes:
- ./backend/data/redis:/data
frontend-dev:
image: node:22.9.0-alpine
container_name: frontend-dev
restart: unless-stopped
working_dir: /app
user: "1000:1000"
volumes:
- ./frontend:/app
environment:
- CONFIG_API_URL=http://backend-dev:5768
- CONFIG_PUBLIC_URL=http://localhost:3042
ports:
- "3042:3042"
command: yarn dev -p 3042