Redirect localhost via network_mode: "service:server"
This commit is contained in:
committed by
=Michael Hohn
parent
faeb13efb1
commit
080c311516
@@ -36,12 +36,10 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
client-ghmrva:
|
client-ghmrva:
|
||||||
# XX: redirect by changing code or using nginx proxy
|
|
||||||
# client.Get(fmt.Sprintf("http://localhost:8080/repos/%s/code-scanning/codeql/variant-analyses/%d", controller, runId), &response)
|
|
||||||
image: ghcr.io/hohn/client-ghmrva-container:0.1.24
|
image: ghcr.io/hohn/client-ghmrva-container:0.1.24
|
||||||
# XX: Include codeql in container if needed; no attached storage container.
|
network_mode: "service:server" # Share the 'server' network namespace
|
||||||
networks:
|
environment:
|
||||||
- backend
|
- SERVER_URL=http://localhost:8080 # 'localhost' now refers to 'server'
|
||||||
|
|
||||||
code-server:
|
code-server:
|
||||||
image: ghcr.io/hohn/code-server-initialized:0.1.24
|
image: ghcr.io/hohn/code-server-initialized:0.1.24
|
||||||
@@ -74,8 +72,6 @@ services:
|
|||||||
command: [ '--mode=container', '--loglevel=debug' ]
|
command: [ '--mode=container', '--loglevel=debug' ]
|
||||||
container_name: server
|
container_name: server
|
||||||
stop_grace_period: 1s
|
stop_grace_period: 1s
|
||||||
ports:
|
|
||||||
- "8080:8080" # host:container
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- rabbitmq
|
- rabbitmq
|
||||||
- dbstore
|
- dbstore
|
||||||
|
|||||||
Reference in New Issue
Block a user