Skip to content
Snippets Groups Projects

docker-compose.yml

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Mauricio Giacomini Girardello
    docker-compose.yml 418 B
    webapp:
      build: "."
      ports:
        - 3000:3000
      volumes:
        - ".:/usr/src/app"
      working_dir: "/usr/src/app"
      command: bundle exec rails s -b '0.0.0.0'
      environment:
        - DATABASE_URL=postgresql://postgres:mysecretpassword@db/
      links:
        - db:db
    db:
      image: postgres
      volumes_from:
        - data
      environment:
        - POSTGRES_PASSWORD=mysecretpassword
    data:
      image: busybox
      volumes:
        - "/var/lib/postgresql"
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment