docker-compose note

This commit is contained in:
dannyrb 2019-05-01 16:37:53 -04:00
parent efcdad7e67
commit 7c62466994

View File

@ -1,3 +1,6 @@
# docker-compose:
# https://docs.docker.com/compose/overview/
version: '3.5' version: '3.5'
services: services:
@ -13,15 +16,17 @@ services:
viewer: viewer:
container_name: ohif-viewer container_name: ohif-viewer
build: build:
# Up to the root directory
context: ../ context: ../
dockerfile: Dockerfile # Use our dockerfile to build the viewer
dockerfile: dockerfile
ports: ports:
- '80:80' - '80:80'
depends_on: depends_on:
- orthanc - orthanc
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- REACT_APP_CONFIG=config/local_orthanc - REACT_APP_CONFIG=config/local_orthanc.js
restart: always restart: always
volumes: volumes:
- ../config/local_orthanc.js:/usr/share/nginx/html/servers.js - ../config/local_orthanc.js:/usr/share/nginx/html/servers.js