Omit race conditions and update swarm info events

This commit is contained in:
Marcos Lilljedahl
2016-12-02 10:29:41 -03:00
parent 84da622775
commit a7811b4e33
4 changed files with 15 additions and 12 deletions

View File

@@ -1,12 +1,12 @@
version: '2'
services:
web:
pwd:
# pwd daemon container always needs to be named this way
container_name: pwd
# use the latest golang image
image: golang
# go to the right place and starts the app
command: /bin/sh -c 'cd /go/src/github.com/franela/play-with-docker; go run api.go'
command: /bin/sh -c 'cd /go/src/github.com/franela/play-with-docker; go run -race api.go'
ports:
# app exposes port 3000
- "3000:3000"