diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 5036d842c2..095583eb02 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -7,6 +7,8 @@ services: image: postgres:alpine volumes: - db:/var/lib/postgresql/data + networks: + - decide web: restart: always container_name: decide_web @@ -19,6 +21,8 @@ services: - static:/app/static depends_on: - db + networks: + - decide nginx: restart: always container_name: decide_nginx @@ -32,9 +36,19 @@ services: - "8000:80" depends_on: - web + networks: + - decide volumes: static: name: decide_static db: name: decide_db + +networks: + decide: + driver: bridge + ipam: + driver: default + config: + - subnet: 10.5.0.0/16 diff --git a/docker/docker-settings.py b/docker/docker-settings.py index 88346c36c3..01e643d936 100644 --- a/docker/docker-settings.py +++ b/docker/docker-settings.py @@ -27,16 +27,16 @@ 'voting', ] -BASEURL = 'http://192.168.124.1:8000' +BASEURL = 'http://10.5.0.1:8000' APIS = { - 'authentication': 'http://192.168.124.1:8000', - 'base': 'http://192.168.124.1:8000', - 'booth': 'http://192.168.124.1:8000', - 'census': 'http://192.168.124.1:8000', - 'mixnet': 'http://192.168.124.1:8000', - 'postproc': 'http://192.168.124.1:8000', - 'store': 'http://192.168.124.1:8000', - 'visualizer': 'http://192.168.124.1:8000', - 'voting': 'http://192.168.124.1:8000', + 'authentication': 'http://10.5.0.1:8000', + 'base': 'http://10.5.0.1:8000', + 'booth': 'http://10.5.0.1:8000', + 'census': 'http://10.5.0.1:8000', + 'mixnet': 'http://10.5.0.1:8000', + 'postproc': 'http://10.5.0.1:8000', + 'store': 'http://10.5.0.1:8000', + 'visualizer': 'http://10.5.0.1:8000', + 'voting': 'http://10.5.0.1:8000', }