2018-03-23 15:49:02 -04:00
|
|
|
version: '3.4'
|
|
|
|
volumes:
|
|
|
|
npm_data:
|
|
|
|
runtime_data:
|
|
|
|
intl_data:
|
|
|
|
|
|
|
|
networks:
|
2018-07-11 10:42:09 -04:00
|
|
|
scratch-api_scratch_network:
|
2018-03-23 15:49:02 -04:00
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
container_name: scratch-www-app
|
|
|
|
hostname: scratch-www-app
|
|
|
|
environment:
|
2018-03-23 15:49:40 -04:00
|
|
|
- API_HOST=http://localhost:8491
|
2018-07-27 10:49:08 -04:00
|
|
|
- FALLBACK=http://scratchr2-app:8080
|
2018-07-18 11:48:52 -04:00
|
|
|
- USE_DOCKER_WATCHOPTIONS=true
|
2018-07-23 09:50:26 -04:00
|
|
|
build:
|
2018-03-23 15:49:02 -04:00
|
|
|
context: ./
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: scratch-www:latest
|
|
|
|
command: ./docker_entrypoint.sh npm start
|
|
|
|
volumes:
|
|
|
|
- type: bind
|
|
|
|
source: ./
|
|
|
|
target: /var/app/current
|
|
|
|
volume:
|
|
|
|
nocopy: true
|
|
|
|
- type: bind
|
|
|
|
source: ../scratch-gui
|
|
|
|
target: /var/app/current/scratch-gui
|
|
|
|
volume:
|
|
|
|
nocopy: true
|
|
|
|
- npm_data:/var/app/current/node_modules
|
|
|
|
- runtime_data:/runtime
|
|
|
|
- intl_data:/var/app/current/intl
|
|
|
|
ports:
|
|
|
|
- "8333:8333"
|
|
|
|
networks:
|
2018-07-11 10:42:09 -04:00
|
|
|
- scratch-api_scratch_network
|