mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Split development config from production config
in `docker-compose.yml` and `docker-compose.override.yml`. This should speed up builds e.g. on Travis CI, which does not need to sync folders or run `yarn run dev` if the docker image was built recently. Also it should make the build more reliable as it behaves more similar to our deployment.
This commit is contained in:
parent
826d987fcd
commit
db724e7834
11
docker-compose.override.yml
Normal file
11
docker-compose.override.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
services:
|
||||||
|
webapp:
|
||||||
|
volumes:
|
||||||
|
- .:/HC-WebApp
|
||||||
|
- node_modules:/HC-WebApp/node_modules
|
||||||
|
command: yarn run dev
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
node_modules:
|
||||||
@ -2,17 +2,13 @@ version: '3.7'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
webapp:
|
webapp:
|
||||||
build:
|
image: humanconnection/nitro-web:latest
|
||||||
context: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
networks:
|
networks:
|
||||||
- hc-network
|
- hc-network
|
||||||
volumes:
|
|
||||||
- .:/HC-WebApp
|
|
||||||
- node_modules:/HC-WebApp/node_modules
|
|
||||||
command: yarn run dev
|
|
||||||
environment:
|
environment:
|
||||||
- HOST=0.0.0.0
|
- HOST=0.0.0.0
|
||||||
- BACKEND_URL=http://backend:4000
|
- BACKEND_URL=http://backend:4000
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user