Commit 0876b7ce authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

use docker networks instead of legacy links

parent 742feab4
# vim:sts=4:sw=4:et:
dev-registry:
version: '2'
networks:
dev:
driver: bridge
sandboxes:
driver: bridge
services:
dev-registry:
container_name: dev-registry
build: registry
......@@ -11,8 +21,7 @@ dev-registry:
volumes:
- "/data/dev/registry:/vol"
#TODO: configure a network ?
dev-controller:
dev-controller:
container_name: dev-controller
build: controller
......@@ -32,10 +41,9 @@ dev-controller:
#tty: true
#stdin_open: true
links:
- dev-mysql
networks: [dev]
dev-mysql:
dev-mysql:
container_name: dev-mysql
build: mysql
#image: allgo/mysql
......@@ -44,7 +52,9 @@ dev-mysql:
volumes:
- "/data/dev/mysql:/vol"
dev-ssh:
networks: [dev]
dev-ssh:
container_name: dev-ssh
build: ssh
......@@ -60,10 +70,9 @@ dev-ssh:
environment:
DB_HOST: "dev-mysql"
links:
- dev-mysql
networks: [dev, sandboxes]
dev-rails:
dev-rails:
container_name: dev-rails
build: rails
......@@ -80,16 +89,13 @@ dev-rails:
environment:
RAILS_ENV: development
links:
- dev-smtpsink
- dev-controller
- dev-mysql
networks: [dev]
tty: true
stdin_open: true
dev-smtpsink:
dev-smtpsink:
container_name: dev-smtpsink
build: smtpsink
......@@ -100,7 +106,9 @@ dev-smtpsink:
volumes:
- "/data/dev/smtpsink:/vol"
dev-nginx:
networks: [dev]
dev-nginx:
container_name: dev-nginx
build: nginx
......@@ -108,9 +116,7 @@ dev-nginx:
- "127.0.0.1:80:80"
- "127.0.0.1:443:443"
links:
- dev-rails
volumes:
- "/data/dev/nginx:/vol"
networks: [dev]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment