Skip to content

Commit d93d401

Browse files
committed
Fix production compose file context
1 parent 44c6510 commit d93d401

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docker-compose.prod.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ version: '3.9'
22

33
services:
44
vue:
5-
build: ./vue-spa/Dockerfile.prod
5+
build:
6+
context: ./vue-spa
7+
dockerfile: Dockerfile.prod
68
db:
79
image: postgres
810
volumes:
@@ -12,7 +14,9 @@ services:
1214
- POSTGRES_USER=postgres
1315
- POSTGRES_PASSWORD=postgres
1416
django:
15-
build: ./django/Dockerfile.prod
17+
build:
18+
context: ./django
19+
dockerfile: Dockerfile.prod
1620
volumes:
1721
- ./django:/app
1822
environment:
@@ -22,7 +26,9 @@ services:
2226
depends_on:
2327
- db
2428
nginx:
25-
build: ./nginx/Dockerfile.prod
29+
build:
30+
context: ./vue-spa
31+
dockerfile: Dockerfile.prod
2632
ports:
2733
- 80:80
2834
depends_on:

0 commit comments

Comments
 (0)