mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Merge remote-tracking branch 'origin/master' into admin-tags-and-categories
This commit is contained in:
commit
0b01ab3d01
13
docker-compose.override.yml
Normal file
13
docker-compose.override.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
services:
|
||||||
|
webapp:
|
||||||
|
volumes:
|
||||||
|
- .:/nitro-web
|
||||||
|
- node_modules:/nitro-web/node_modules
|
||||||
|
- node_modules_styleguide:/nitro-web/styleguide/node_modules
|
||||||
|
command: yarn run dev
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
node_modules:
|
||||||
|
node_modules_styleguide:
|
||||||
@ -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
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
export default function({ app }) {
|
export default function({ app }) {
|
||||||
const backendUrl = process.BACKEND_URL || 'http://localhost:4000'
|
const backendUrl = process.env.BACKEND_URL || 'http://localhost:4000'
|
||||||
return {
|
return {
|
||||||
httpEndpoint: process.server ? backendUrl : '/api',
|
httpEndpoint: process.server ? backendUrl : '/api',
|
||||||
httpLinkOptions: {
|
httpLinkOptions: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user