Questions tagged [docker-compose]
Compose is a tool for defining and running complex applications with Docker. With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running.
docker-compose
32,256
questions
2
votes
1
answer
1k
views
HAProxy not running nodeJS API correctly
I am running coreOS in EC2.
I have a nodeJS api docker image and running that in couple of ports (25001 and 25002). When I curl to them, I see proper response.
My intent is to have a HAProxy above ...
2
votes
1
answer
704
views
Cron job break other foreground server in docker
In order to start selenium server on start,
I have to put entry_point.sh under /opt/bin
but if I uncomment the cron command CMD cron && tail -f /var/log/cron.log
The server won't run anymore....
0
votes
2
answers
223
views
Kubernetes Guestbook Example Not Loading Page
New question:
I've followed the guestbook tutorial here: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/examples/guestbook/README.md
And the output of my commands match their outputs ...
2
votes
1
answer
2k
views
docker compose, vagrant and insecure Repository
I have setup docker-compose to pull my image from a custom repository.
Here is how the yaml file looks like
my_service:
image: d-myrepo:5000/mycompany/my_service:latest
ports:
- "8079:8079"
...
1
vote
1
answer
1k
views
Docker and package managers in production
I'm developing a PHP application which I want to have running using docker containers. I'm using the composer package manager which pulls in all the dependencies. All code is kept in a git repository ...
1
vote
2
answers
4k
views
docker-compose nginx volumes not mounted
I have docker-compose.yml with just nginx in it but when running it the volumes is not found inside the nginx container.
The Dockerfile works fine in another setup and the src dir exists, so i dont ...
3
votes
1
answer
347
views
Development workflow for docker-compose: run a dev-version container
I have a quite typical docker-compose setup: a custom web container and a database container directly from docker hub. For development, my host directory is mounted into the web docker so that I do ...
13
votes
3
answers
19k
views
How to import a database into a Docker container using docker-compose
I am working with the official WordPress Docker image with docker-compose on my Mac (using boot2docker). I need to do a one-off data import. I'm not sure how to do this. How can I import data to the ...
69
votes
8
answers
103k
views
Redis in docker-compose: any way to specify a redis.conf file?
My Redis container is defined as a standard image in my docker_compose.yml:
redis:
image: redis
ports:
- "6379"
I guess it's using standard settings like binding to Redis at ...
0
votes
1
answer
987
views
Docker-compose: Mount a volume only in the first container
I'm using docker compose to run a MariaDB Galera Cluster, where each node is a docker container, but MariaDB GC need a master node at start to initialize the database.
I'd like to choose the master ...
2
votes
1
answer
6k
views
Serving static files directly via a containerized front-end web server?
I have a Docker Compose file with a couple of PHP/FastCGI-based web applications that I want to expose via Nginx (3 containers in total). If the two web app containers store their static files on "/...
4
votes
1
answer
9k
views
NFS Volumes in Docker/Docker-Compose
I'm using boot2mac and docker-compose. I want to be able to configure this to mount my volume via NFS. This is my configuration:
web:
image: nginx
links:
- db
ports:
- "80:80"
volumes:...
1
vote
1
answer
112
views
docker-compose/boot2docker use in Ubuntu
I have a docker-compose.yml file in my project and I am trying to use it using docker on my linux machine (Ubuntu 14.04).
Can someone shed a light on this how I can use this in my project?
I have ...
13
votes
1
answer
8k
views
Monitoring file changes in Docker volumes
I have a docker container that is running a python script: waiting for input requests and processing data accordingly.
Since I am using docker for development, I would like that, whenever I change ...
13
votes
2
answers
7k
views
Set the port for docker-compose.yml at runtime
I have a docker-compose.yml file in one of my projects where I link multiple containers to build one application. The main entry point (i.e. a container with a web server) is run on host port 8080.
...