Skip to content

Commit

Permalink
docker: network configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
danigm committed Jun 8, 2018
1 parent b087fd4 commit d408328
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
14 changes: 14 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
image: postgres:alpine
volumes:
- db:/var/lib/postgresql/data
networks:
- decide
web:
restart: always
container_name: decide_web
Expand All @@ -19,6 +21,8 @@ services:
- static:/app/static
depends_on:
- db
networks:
- decide
nginx:
restart: always
container_name: decide_nginx
Expand All @@ -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
20 changes: 10 additions & 10 deletions docker/docker-settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}

0 comments on commit d408328

Please sign in to comment.