-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
31 lines (30 loc) · 966 Bytes
/
docker-compose.yaml
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
services:
web:
build:
context: .
target: backend-development
command: ["tail", "-f", "/dev/null"]
env_file:
- .env
ports:
- "8000:8000"
volumes:
- .:/app
- ./data:/data
# Named volume to prevent the static assets build during image build from being overriden by the above project root bind mount.
- frontend_assets:/app/lpld/static/comp:ro
frontend:
build:
context: .
target: frontend
command: ["tail", "-f", "/dev/null"]
env_file:
- .env
volumes:
- .:/home/node/app
# Named volume to prevent the static assets build during image build from being overriden by the above project root bind mount.
- frontend_assets:/home/node/app/lpld/static/comp:rw
# Anonymous volume to prevent the node_modules directory being overridden by the above bind mounting for the project root.
- /home/node/app/node_modules
volumes:
frontend_assets: