mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Merge pull request #2033 from LLK/use_docker_up
Recongfigure docker external network usage
This commit is contained in:
commit
56fd5c7ed7
3 changed files with 19 additions and 5 deletions
14
Makefile
14
Makefile
|
@ -1,11 +1,25 @@
|
|||
ESLINT=./node_modules/.bin/eslint
|
||||
NODE= NODE_OPTIONS=--max_old_space_size=8000 node
|
||||
SASSLINT=./node_modules/.bin/sass-lint -v
|
||||
SCRATCH_DOCKER_CONFIG=./node_modules/.bin/docker_config.sh
|
||||
S3CMD=s3cmd sync -P --delete-removed --add-header=Cache-Control:no-cache,public,max-age=3600
|
||||
TAP=./node_modules/.bin/tap
|
||||
WATCH= NODE_OPTIONS=--max_old_space_size=8000 ./node_modules/.bin/watch
|
||||
WEBPACK= NODE_OPTIONS=--max_old_space_size=8000 ./node_modules/.bin/webpack
|
||||
|
||||
|
||||
# ------------------------------------
|
||||
|
||||
$(SCRATCH_DOCKER_CONFIG):
|
||||
npm install scratch-docker
|
||||
|
||||
docker-up: $(SCRATCH_DOCKER_CONFIG)
|
||||
$(SCRATCH_DOCKER_CONFIG) network create
|
||||
docker-compose up
|
||||
|
||||
docker-down:
|
||||
docker-compose down
|
||||
|
||||
# ------------------------------------
|
||||
|
||||
build:
|
||||
|
|
|
@ -4,8 +4,9 @@ volumes:
|
|||
runtime_data:
|
||||
|
||||
networks:
|
||||
scratch-api_scratch_network:
|
||||
external: true
|
||||
default:
|
||||
external:
|
||||
name: scratchapi_scratch_network
|
||||
|
||||
services:
|
||||
app:
|
||||
|
@ -13,7 +14,7 @@ services:
|
|||
hostname: scratch-www-app
|
||||
environment:
|
||||
- API_HOST=http://localhost:8491
|
||||
- FALLBACK=http://localhost:8080
|
||||
- FALLBACK=http://scratchr2-app:8080
|
||||
- USE_DOCKER_WATCHOPTIONS=true
|
||||
build:
|
||||
context: ./
|
||||
|
@ -35,5 +36,3 @@ services:
|
|||
- runtime_data:/runtime
|
||||
ports:
|
||||
- "8333:8333"
|
||||
networks:
|
||||
- scratch-api_scratch_network
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
"lodash.defaults": "4.0.1",
|
||||
"newrelic": "1.25.4",
|
||||
"raven": "0.10.0",
|
||||
"scratch-docker": "^1.0.2",
|
||||
"scratch-parser": "^4.2.0",
|
||||
"scratch-storage": "^0.5.1"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue