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.

134 questions
94
votes
16 answers

Can't install pip packages inside a docker container with Ubuntu

I'm following the fig guide to using docker with a python application, but when docker gets up to the command RUN pip install -r requirements.txt I get the following error message: Step 3 : RUN pip install -r requirements.txt ---> Running in…
Migwell
  • 14,206
  • 17
  • 65
  • 122
55
votes
3 answers

Can I use mem_limit in docker-compose? and How?

mem_limit is supported by docker-compose? How can I test it? I have a following docker-compose.yml repository: image: myregistry/my_nginx_image mem_limit: 60m volumes: - /etc/localtime:/etc/localtime ports: - "80:80" How can I prove…
Montells
  • 5,513
  • 3
  • 41
  • 48
36
votes
5 answers

How to get into psql of a running postgres container?

I created a postgres container using the tutorial on the fig website. I named the container db. The container is running and my app connects to it fine. I tried to run the command fig run db psql with the db container running and got the…
sargas
  • 4,422
  • 5
  • 43
  • 62
23
votes
4 answers

docker-compose: using multiple Dockerfiles for multiple services

I'm using docker-compose and I'd like to use different Dockerfiles for different services' build steps. The docs seem to suggest to place different Dockerfiles in different directories, but I'd like them all to be in the same one (and perhaps…
aralar
  • 2,594
  • 4
  • 25
  • 41
16
votes
2 answers

Docker + fig / compose + nginx + node.js + mysql + redis

I'm trying to set up a Node.js app on Docker multiple containers. My app is currently on one Ubuntu DO droplet & uses: Node.js (express 4) mysql for the app database redis for a key-value store nginx for load balancing and serve static files. I…
Ajar
  • 941
  • 2
  • 9
  • 26
16
votes
5 answers

Access Docker from external machine in network

Is it possible to access an docker service from an external device? I built the service via fig and exposed the port 3000. I use fig with docker-osx, so docker is running inside a virtualbox. Now I need to access the service provided from an…
David Geh
  • 277
  • 1
  • 2
  • 12
14
votes
1 answer

Debug django app running inside docker image, using pycharm debugger

My app is running inside a docker image (My development team never install software in their machines, only the docker images have the dependencies). I Need to debug something using pycharm debugger, how do I connect pycharm's debugger to the docker…
silva96
  • 415
  • 1
  • 4
  • 15
13
votes
3 answers

Docker Compose circular container linking

I'm in the process of attempting to containerize our development environment with docker. This includes a mix of Google Appengine projects as well as services that are being eventually hosted in Google Compute engine within a containerized vm. Our…
Jesse
  • 7,773
  • 5
  • 43
  • 71
12
votes
1 answer

When running a Django dev server with docker/fig, why is some of the log output hidden?

I'm writing a Dockerfile which needs to run multiple commands as part of the CMD instruction and I thought the right way to do this would be to run a shell script with the main daemon executed via exec. Unfortunately, as part of that process some of…
Henrik Heimbuerger
  • 9,251
  • 4
  • 52
  • 65
12
votes
4 answers

Nodemon is not working in Docker environment

I'm using Docker with fig to build NodeJS dev-env. While I using nodemon to watch the server.js, changing server.js won't restart the server. CMD ["nodemon", "/nodeapp/server.js"] But while I changed from nodemon to supervisor, then it worked! CMD…
kerkerj
  • 123
  • 1
  • 1
  • 6
12
votes
1 answer

Setting up a docker / fig Mesos environment

I'm trying to set up a docker / fig Mesos cluster. I'm new to fig and Docker. Docker has plenty of documentation, but I find myself struggling to understand how to work with fig. Here's my fig.yaml at the moment: zookeeper: image:…
JRun
  • 3,178
  • 5
  • 22
  • 39
9
votes
3 answers

How can I send command line options to my dockerized program that I start with "docker-compose up"?

I am trying to use docker-compose up the way you can use docker run [APP_CONTAINER_NAME] [APP_OPTIONS].
Donovan
  • 796
  • 1
  • 8
  • 16
9
votes
2 answers

Understanding ports and links in docker compose

From my understanding of docker compose / fig, creating a link between two services/images is one main reason if you do not want to exposes ports to others. like here db does not expose any ports and is only linked: web: build: . links: - db …
svenhornberg
  • 10,256
  • 9
  • 34
  • 52
9
votes
2 answers

Dockerfile vs Docker image

I'm working on creating some docker images to be used for testing on dev machines. I plan to build one for our main app as well as one for each of our external dependencies (postgres, elasticsearch, etc). For the main app, I'm struggling with the…
Jeff Fairley
  • 6,762
  • 6
  • 40
  • 49
9
votes
3 answers

Keeping a Play framework app running in a Docker container without a pseudo-TTY

I have a development setup where I need multiple containers running different services, and I'm trying to use Fig to achieve this. Everything else works fine, but one of these services is a Play Framework app, and it does not want to stay running…
Ilkka
  • 2,506
  • 1
  • 22
  • 27
1
2 3
8 9