Skip to content

datastore returns exited with code 0 #4148

@chansuke

Description

@chansuke
  • docker for mac(Version:1.12.3-beta30
  • docker-compose(Version:1.9.0-rc4, build 181a4e9)

I am running docker-compose with the file below,but always fail with datastore.It returns sampleapp_datastore_1 exited with code 0.

version: "2"
services:

  datastore:
    image: busybox
    volumes:
      - postgres-data:/var/lib/postgres/data

  postgres:
    image: postgres
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: password
    ports:
      - '5432:5432'
    volumes_from:
      - datastore
  app:
    build: .
    ports:
      - '3000:3000'
    links:
      - postgres
    volumes_from:
      - datastore
    command: bundle exec rails s -b "0.0.0.0"

volumes:
  postgres-data:
    driver: local

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions