1234567891011121314151617181920212223242526272829303132333435363738 |
- version: "2"
- services:
- restserver:
- container_name: restserver
- build: ./server/
- volumes:
- - './server:/usr/src'
- - '/usr/src/node_modules'
- ports:
- - '3002:3002'
- reactclient:
- container_name: reactclient
- build: ./client/
- volumes:
- - './client:/usr/src'
- - '/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'
- ports:
- - '27017:27017'
|