1
0
mirror of https://github.com/daniviga/bite.git synced 2025-04-20 22:41:18 +02:00

Add an ENV far for custom docker binding

This commit is contained in:
Daniele Viganò 2020-06-21 18:32:46 +02:00
parent fb92cd3198
commit 9dcb86366f
Signed by: dani
GPG Key ID: DB49AFC03C40EE02
2 changed files with 6 additions and 6 deletions

View File

@ -7,15 +7,15 @@ services:
broker: broker:
ports: ports:
- "1883:1883" - "${CUSTOM_DOCKER_IP:-0.0.0.0}:1883:1883"
- "9001:9001" - "${CUSTOM_DOCKER_IP:-0.0.0.0}:9001:9001"
bite: bite:
volumes: volumes:
- ../bite:/srv/app/bite - ../bite:/srv/app/bite
command: ["python3", "manage.py", "runserver", "0.0.0.0:8000"] command: ["python3", "manage.py", "runserver", "0.0.0.0:8000"]
ports: ports:
- "8000:8000" - "${CUSTOM_DOCKER_IP:-0.0.0.0}:8000:8000"
data-migration: data-migration:
volumes: volumes:

View File

@ -20,7 +20,7 @@ services:
networks: networks:
- net - net
ports: ports:
- "123:123/udp" - "${CUSTOM_DOCKER_IP:-0.0.0.0}:123:123/udp"
timescale: timescale:
<<: *service_default <<: *service_default
@ -41,13 +41,13 @@ services:
networks: networks:
- net - net
ports: ports:
- "1883:1883" - "${CUSTOM_DOCKER_IP:-0.0.0.0}:1883:1883"
ingress: ingress:
<<: *service_default <<: *service_default
image: nginx:stable-alpine image: nginx:stable-alpine
ports: ports:
- "80:80" - "${CUSTOM_DOCKER_IP:-0.0.0.0}:80:80"
networks: networks:
- net - net
volumes: volumes: