Questions tagged [fig]

[Fig] is a tool built by Orchard for creating fast, isolated development environments using Docker.

Fig is a tool built by Orchard for creating fast, isolated development environments using Docker. It allows you to define the parameters to each docker container in the deployment as well as the links between the containers. Fig is useful for bringing up the entire deployment with a single command. Fig files can also be integrated with Orchard to run remote docker containers.

Fig has now been replaced by Docker Compose, and is now deprecated.

144 questions
8
votes
2 answers

Docker Compose with one Terminating Container

I'm having a docker compose setup of a database container, an application container and one container which pre-loads the database with necessary data. I want to start all of the containers together with docker-compose up while the pre-loading…
white_gecko
  • 4,808
  • 4
  • 55
  • 76
8
votes
1 answer

How to deal with Docker container dependencies properly?

I have just started to learn about Docker and consider replacing my VM-based infrastructure by a Docker infrastructure. I am wondering about how to deal with dependencies between containers and how to decide when/if a restart of a dependent…
tgpfeiffer
  • 1,698
  • 2
  • 18
  • 22
7
votes
2 answers

Docker Compose does not bind ports

I have the following Dockerfile for my container: FROM centos:centos7 # Install software RUN yum -y update && yum clean all RUN yum install -y tar gzip wget && yum clean all # Install io.js RUN mkdir /root/iojs RUN …
rotespferd
  • 315
  • 1
  • 5
  • 10
7
votes
2 answers

Docker: how to provide secret information to the container?

I have my app inside a container and it's reading environment variables for passwords and API keys to access services. If I run the app on my machine (not inside docker), I just export SERVICE_KEY='wefhsuidfhda98' and the app can use it. What's the…
duality_
  • 17,738
  • 23
  • 77
  • 95
7
votes
2 answers

What is the proper way of setting a mongodb replica set using docker and fig?

What is the proper way of setting a mongodb replica set using docker and fig? I was trying to follow official mongodb tutorials to create a fig.yml file with some replica sets but always got blocked by how to call rs.initiate() and…
Felipe Sabino
  • 17,825
  • 6
  • 78
  • 112
6
votes
1 answer

How to build a streamlined development environment for micro-services

I was thinking about the micro services architecture and wondering if folks have a good best practice for development environments. My working assumption is that each micro service will live in it's own git repository for isolation and ease of…
Douglas Ferguson
  • 1,242
  • 2
  • 14
  • 25
5
votes
1 answer

Docker will not attach to an image

I have a fig.yml file that I am using to set up my docker containers. I run this by typing ./fig up Then it outputs the following: Recreating docker_memcache_1... Recreating docker_sphinx_1... Recreating docker_percona_1... Recreating…
Johnathon22
  • 313
  • 2
  • 4
  • 14
5
votes
3 answers

Mesos, Marathon, the cloud and 10 data centers - How to talk to each other?

I've been looking into Mesos, Marathon and Chronos combo to host a large number of websites. In my head I should be able to type a few commands into my laptop, and wait about 30 minutes for the thing to build and deploy. My only issue, is that my…
5
votes
1 answer

Docker mysql host not privileged

I am trying to configure a nodejs container to connect to a mysql database. My code looks like this: var pool = mysql.createPool({ host : 'mysql', port : '3306', user : 'root', password : '...', database :…
Petru
  • 904
  • 1
  • 12
  • 18
5
votes
3 answers

fig up: docker containers start synchronisation

For one of my home projects I decided to use docker containers and fig for orchestration (first time using those tools). Here is my fig.yaml: rabbitmq: image: dockerfile/rabbitmq:latest mongodb: image: mongo app: build: . command: python…
Jener
  • 65
  • 5
5
votes
1 answer

Fig up: Cannot find module - docker run works

I'm trying to run fig up with a minimal node app. (edited: removed volumes from fig.yml) fig.yml: example: build: . command: node server.js ports: - "4000:4000" links: - postgres postgres: image: postgres Dockerfile: FROM node ADD…
Skylar Saveland
  • 11,116
  • 9
  • 75
  • 91
5
votes
1 answer

Why do my volumes sometime not get mounted in my Docker container when using fig?

I'm seeing a strange problem in a Docker/Fig environment. My hypothesis is that it's due to a delay in mounting volumes to containers, but I'm not sure how to confirm that. I have a container with the following: Dockerfile FROM busybox MAINTAINER…
Dancrumb
  • 26,597
  • 10
  • 74
  • 130
4
votes
3 answers

nginx and php-fpm in Docker

I am in the process of Dockerising my webserver/php workflow. But because I am on Windows, I need to use a virtual machine. I chose boot2docker which is a Tiny Core Linux running in Virtualbox and adapted for Docker. I selected three…
tleb
  • 4,395
  • 3
  • 25
  • 33
4
votes
1 answer

Docker: Nginx & PHP Container: no such file or directory

I want to play around with docker so I created my own 2 container, nginx and php. Both container are build successfully and are published on docker hub. After that I created a fig.yml in my projects folder. If I run fig up -d in my terminal, then I…
Marvin Caspar
  • 1,319
  • 1
  • 14
  • 25
4
votes
1 answer

Docker - Volume not mounting latest files in container

The Problem When I start a new container in Docker, I want to mount a volume so that I get the latest updates to any files on my host machine and can work with them in my container. However, what I am finding is that Docker is mounting my volumes…
Kenny Worden
  • 4,335
  • 11
  • 35
  • 62
1
2
3
9 10