-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 1.3 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
46
#
# web-based InterCOM - platform for collaborative design
# docker example for full local dev env.
#
version: '3'
services:
dev-intercom-db:
container_name: dev-intercom-db
image: postgres:12
restart: always
volumes:
- ./db:/var/lib/postgresql/data
ports:
- 5432:5432
env_file:
- ./apps/backend/.env
dev-intercom-backend:
container_name: dev-intercom-backend
build:
context: .
dockerfile: ./apps/backend/builds/Dockerfile
restart: always
ports:
- "3000:3000"
volumes:
- ./apps/backend:/app/apps/backend # Mount the local backend directory to the container
- /app/apps/backend/node_modules # Use an anonymous volume for node_modules to avoid host contamination
- ./files:/files # Mount any additional directories as needed
env_file:
- ./apps/backend/.env
dev-intercom-frontend:
container_name: dev-intercom-frontend
build:
context: .
dockerfile: ./apps/frontend/Dockerfile-dev
restart: always
ports:
- 8080:8080
volumes:
- ./apps/frontend:/app/apps/frontend # Mount the local frontend directory to the container
- /app/apps/frontend/node_modules # Use an anonymous volume for node_modules to avoid host contamination
env_file:
- ./apps/backend/.env