|
@@ -71,7 +71,7 @@ services:
|
|
|
- NODE_ENV=production
|
|
|
- PORT=3000
|
|
|
- DB_PATH=/app/data/framed.db
|
|
|
- - CORS_ORIGINS=https://${SERVICE_NAME:-localhost}
|
|
|
+ - CORS_ORIGINS=https://${HOSTNAME:-localhost}
|
|
|
networks:
|
|
|
- proxy
|
|
|
labels:
|
|
@@ -97,8 +97,8 @@ services:
|
|
|
environment:
|
|
|
- PORT=3001
|
|
|
## use hostname env var or localhost
|
|
|
- - REACT_APP_API_URL=http://${SERVICE_NAME:-localhost}/api
|
|
|
- - REACT_APP_WS_URL=ws://${SERVICE_NAME:-localhost}
|
|
|
+ - REACT_APP_API_URL=https://${HOSTNAME:-localhost}/api
|
|
|
+ - REACT_APP_WS_URL=wss://${HOSTNAME:-localhost}
|
|
|
command: sh -c "npm install && npm start"
|
|
|
depends_on:
|
|
|
- framed-server
|