Merge pull request #76 from Human-Connection/docker_compose_override

Split development config from production config
This commit is contained in:
Grzegorz Leoniec 2018-12-08 23:42:26 +01:00 committed by GitHub
commit eda9dfafb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 6 deletions

View File

@ -0,0 +1,13 @@
version: '3.7'
services:
webapp:
volumes:
- .:/nitro-web
- node_modules:/nitro-web/node_modules
- node_modules_styleguide:/nitro-web/styleguide/node_modules
command: yarn run dev
volumes:
node_modules:
node_modules_styleguide:

View File

@ -2,17 +2,13 @@ version: '3.7'
services:
webapp:
build:
context: .
image: humanconnection/nitro-web:latest
build: .
ports:
- 3000:3000
- 8080:8080
networks:
- hc-network
volumes:
- .:/HC-WebApp
- node_modules:/HC-WebApp/node_modules
command: yarn run dev
environment:
- HOST=0.0.0.0
- BACKEND_URL=http://backend:4000