Skip to content

Instantly share code, notes, and snippets.

@jacksoncharles
Created March 25, 2016 08:09
Show Gist options
  • Save jacksoncharles/960761ea509bcd4cbaae to your computer and use it in GitHub Desktop.
Save jacksoncharles/960761ea509bcd4cbaae to your computer and use it in GitHub Desktop.
docker-compose config file
productsapi:
build: ./productsapi
dns:
- 172.16.4.2
- 172.16.4.13
- 10.49.32.4
ports:
- "8080:80"
volumes:
- ./productsapi:/var/www
links:
- productsapidb:productsapidb
restart: always
products:
build: ./products
dns:
- 172.16.4.2
- 172.16.4.13
- 10.49.32.4
ports:
- "80:80"
volumes:
- ./products/public:/var/www
restart: always
productsapidb:
image: mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=products
restart: always
sso:
build: ./oauth2
dns:
- 172.16.4.2
- 172.16.4.13
- 10.49.32.4
ports:
- "1234:80"
volumes:
- ./oauth2/public:/var/www
restart: always​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment