Skip to content

Commit 5a1e1b7

Browse files
author
Vic Shóstak
authored
Update docker-compose.prod.yml
1 parent 16c9109 commit 5a1e1b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docker-compose.prod.yml

+6
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ services:
77
container_name: frontend
88
build:
99
context: ./frontend
10+
volumes:
11+
- static:/frontend/build
1012

1113
nginx:
1214
volumes:
15+
- static:/usr/share/nginx/html
1316
- ./frontend/build:/usr/share/nginx/html/
1417
- ./webserver/nginx/default.conf:/etc/nginx/conf.d/default.conf
1518
- ./webserver/nginx/site.com.conf:/etc/nginx/sites-enabled/site.com.conf # change site.com (!)
@@ -21,3 +24,6 @@ services:
2124
- 443:443
2225
depends_on:
2326
- frontend
27+
28+
volumes:
29+
static:

0 commit comments

Comments
 (0)