Docker Compose to CoreOS -


i'm learning docker, , have made nice , simple docker compose setup. 3 containers, own dockerfile setup. how go converting work on coreos can setup cluster later on?

web:   build: ./app   ports:     - "3030:3000"   links:     - "redis"  newrelic:   build: ./newrelic   links:     - "redis"  redis:   build: ./redis   ports:     - "6379:6379"   volumes:     - /data/redis:/data 

taken https://docs.docker.com/compose/install/

the thing /usr read only, /opt/bin writable , in path, so:

sd-xx~ # mkdir /opt/ sd-xx~ # mkdir /opt/bin sd-xx~ # curl -l https://github.com/docker/compose/releases/download/1.3.3/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose   % total    % received % xferd  average speed   time    time     time  current                                  dload  upload   total   spent    left  speed 100   403    0   403    0     0   1076      0 --:--:-- --:--:-- --:--:--  1080 100 7990k  100 7990k    0     0  2137k      0  0:00:03  0:00:03 --:--:-- 3176k sd-xx~ # chmod +x /opt/bin/docker-compose  sd-xx~ # docker-compose define , run multi-container applications docker.  usage:   docker-compose [options] [command] [args...]   docker-compose -h|--help  options:   -f, --file file           specify alternate compose file (default: docker-compose.yml)   -p, --project-name name   specify alternate project name (default: directory name)   --verbose                 show more output   -v, --version             print version , exit  commands:   build              build or rebuild services                 on command   kill               kill containers   logs               view output containers   port               print public port port binding   ps                 list containers   pull               pulls service images   restart            restart services   rm                 remove stopped containers   run                run one-off command   scale              set number of containers service   start              start services   stop               stop services                   create , start containers   migrate-to-labels  recreate containers add labels 

Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -