Skip to content

Instantly share code, notes, and snippets.

@usmanismail
Created August 2, 2015 14:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save usmanismail/8a39047ca2d2ebe00800 to your computer and use it in GitHub Desktop.
Save usmanismail/8a39047ca2d2ebe00800 to your computer and use it in GitHub Desktop.
Goauth:
image: go-auth
ports:
- "9000:9000"
stdin_open: true
links:
- Database:db
command:
- "--db-host"
- "db"
tty: true
Database:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: messenger
MYSQL_USER: messenger
MYSQL_PASSWORD: messenger
expose:
- "3306"
stdin_open: true
tty: true
Goauth1:
image: go-auth
ports:
- "9000:9000"
stdin_open: true
links:
- Database:db
command:
- "--db-host"
- "db"
tty: true
Database1:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: messenger
MYSQL_USER: messenger
MYSQL_PASSWORD: messenger
expose:
- "3306"
stdin_open: true
tty: true
@riker09
Copy link

riker09 commented Sep 30, 2016

You are both right. It even states this in the related blog post.

The only change is that in Goauth1 we need to change the ports entry from 9000:9000 to 9001:9000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment