Skip to content

Instantly share code, notes, and snippets.

@dadicool
dadicool / docker-compose.yml
Created Sep 12, 2018
docker-compose blog post example
View docker-compose.yml
version: '2'
services:
web:
image: lifen/railsApp:${VERSION}
mem_limit: 1024m
ports:
- "3000:3000"
env_file:
- .env.web.production
volumes:
View Deployment Simple Steps
Copy docker-compose to host
Docker-compose pull
Docker-compose up -d --force-recreate
View gist:e1ee0ab50bcec157dedf0ac4e3f18a57
fatal: [172.30.0.51]: FAILED! => {"changed": true, "cmd": "DR_TAG=master /usr/local/bin/docker-compose pull", "delta": "0:00:32.688561", "end": "2017-03-21 20:03:58.143947", "failed": true, "rc": 1, "start": "2017-03-21 20:03:25.455386", "stderr": "Pulling logging (digitalrebar/logging:master)...\nPulling postgres (digitalrebar/dr_postgres:master)...\nPulling rule-engine (digitalrebar/rule-engine:master)...\nPulling ntp (digitalrebar/dr_ntp:master)...\nPulling consul (gliderlabs/consul:latest)...\nPulling trust_me (digitalrebar/dr_trust_me:master)...\nPulling goiardi (digitalrebar/dr_goiardi:master)...\nPulling dns (digitalrebar/dr_dns:master)...\nPulling provisioner (digitalrebar/dr_provisioner:master)...\nPulling revproxy (digitalrebar/dr_rev_proxy:master)...\nPulling cloudwrap (digitalrebar/cloudwrap:master)...\nlayers from manifest don't match image configuration", "stdout": "master: Pulling from digitalrebar/logging\nDigest: sha256:4eeee9ee94df703bc69ce1ef0af12d36302ac315873361c55089be701d140e9a\nStatus:
You can’t perform that action at this time.