coreos - Execute docker command with deis -
i have deis(1.5.2) 3 host , want "app" database. want use postgres, found docker image https://registry.hub.docker.com/_/postgres/ . did deploy without problems, don't know how can connect app/container (create db, users) , link other app/container. write commands it's docker. how can run these commands deis:
docker run --name some-app --link some-postgres:postgres -d application-that-uses-postgres docker run -it --link some-postgres:postgres --rm postgres sh -c 'exec psql -h "$postgres_port_5432_tcp_addr" -p "$postgres_port_5432_tcp_port" -u postgres' or have other solution using db deis?
Comments
Post a Comment