|
@@ -16,11 +16,21 @@ services:
|
|
|
build: ./client/
|
|
|
volumes:
|
|
|
- './client:/usr/src'
|
|
|
- - '/usr/src/node_modules'
|
|
|
+ - './node_modules:/usr/src/node_modules'
|
|
|
ports:
|
|
|
- '3000:3000'
|
|
|
|
|
|
+ public:
|
|
|
+ container_name: public
|
|
|
+ image: nginx
|
|
|
+ ports:
|
|
|
+ - '8080:8080'
|
|
|
+ volumes:
|
|
|
+ - './nginx/default.conf:/etc/nginx/conf.d/default.conf'
|
|
|
+ - './client/build:/usr/share/nginx/html'
|
|
|
+
|
|
|
mongodb:
|
|
|
+ container_name: database
|
|
|
image: mongo
|
|
|
volumes:
|
|
|
- './data:/data/db'
|