binded-dc
v2.0.0
Published
Shared development `docker-compose.yml` file for Binded services.
Downloads
2
Readme
Shared development docker-compose.yml
file for Binded services.
Usage
If you have a docker-compose.yml, replace
minio:
image: minio/minio
ports:
- "9000:9000"
postgres:
image: postgres:9.5
ports:
- "5432:5432"
redis:
image: redis:3.0.7-alpine
ports:
- "6379:6379"
app:
image: someapp
links:
- db
- redis
- minio
with:
app:
image: someapp
external_links:
- binded_postgres_1:postgres
- binded_redis_1:redis
- binded_minio_1:minio
links:
- db
You need to make sure to run binded-dc
before launching your own
docker-compose.yml
, e.g., in package.json:
{
"name": "someapp",
"scripts": {
"docker": "binded-dc && docker-compose up -d"
},
"devDependencies": {
"binded-dc": "^1.0.0"
}
}
npm run docker