-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 1.07 KB
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (46 loc) · 1.07 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
x-common-env-config: &env-config
env_file:
- ./.default.env
- path: ./.override.env
required: false
services:
products-frontend:
<<: *env-config
build:
context: ./frontend
dockerfile: Dockerfile.serverside.dev
target: development
ports:
- "${FRONTEND_DEVELOPMENT_PORT}:${FRONTEND_DEVELOPMENT_PORT}"
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- products-api
environment:
- NEXT_PUBLIC_BASE_URL=${FRONTEND_DEVELOPMENT_URL}
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
- NODE_ENV=development
products-postgres:
<<: *env-config
build:
context: ./db
dockerfile: Dockerfile
volumes:
- products_postgres_data:/var/lib/postgresql/data
products-api:
<<: *env-config
build:
context: ./Backend/
dockerfile: Dockerfile.dev
ports:
- "${API_DEVELOPMENT_PORT}:5013"
depends_on:
- products-postgres
volumes:
- ./Backend:/app
- /app/obj/
- /app/bin/
volumes:
products_postgres_data: