Try using the host network explicitly.
This commit is contained in:
@@ -21,12 +21,16 @@ services:
|
|||||||
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
|
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
|
||||||
- MYSQL_USER=$MYSQL_USER
|
- MYSQL_USER=$MYSQL_USER
|
||||||
- MYSQL_PASSWORD=$MYSQL_PASSWORD
|
- MYSQL_PASSWORD=$MYSQL_PASSWORD
|
||||||
|
networks:
|
||||||
|
hostnet: {}
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
container_name: nc-redis
|
container_name: nc-redis
|
||||||
image: redis
|
image: redis
|
||||||
restart: always
|
restart: always
|
||||||
command: redis-server --requirepass $REDIS_HOST_PASSWORD
|
command: redis-server --requirepass $REDIS_HOST_PASSWORD
|
||||||
|
networks:
|
||||||
|
hostnet: {}
|
||||||
|
|
||||||
app:
|
app:
|
||||||
container_name: nc-app
|
container_name: nc-app
|
||||||
@@ -49,3 +53,10 @@ services:
|
|||||||
- REDIS_HOST_PASSWORD=$REDIS_HOST_PASSWORD
|
- REDIS_HOST_PASSWORD=$REDIS_HOST_PASSWORD
|
||||||
#dns:
|
#dns:
|
||||||
# - $DNS
|
# - $DNS
|
||||||
|
networks:
|
||||||
|
hostnet: {}
|
||||||
|
|
||||||
|
networks:
|
||||||
|
hostnet:
|
||||||
|
external: true
|
||||||
|
name: host
|
||||||
|
@@ -15,3 +15,10 @@ services:
|
|||||||
- JWT_SECRET=$JWT_SECRET
|
- JWT_SECRET=$JWT_SECRET
|
||||||
#dns:
|
#dns:
|
||||||
# - $DNS
|
# - $DNS
|
||||||
|
networks:
|
||||||
|
hostnet: {}
|
||||||
|
|
||||||
|
networks:
|
||||||
|
hostnet:
|
||||||
|
external: true
|
||||||
|
name: host
|
||||||
|
Reference in New Issue
Block a user