Questions tagged [docker-compose]

Compose is a tool for defining and running multi-container Docker applications.

Docker Compose is a tool for defining and running multi-container Docker applications.

529 questions
1
vote
2 answers

Docker compose errror when mounting the volumes

In order to see changes in your working directory inside docker, as far as I understand on the docker-compose.yml you need to map the volume to the directory you are going to work. currently I have this web: build: . ports: - "8080:8080" …
zetacu
  • 113
  • 6
1
vote
2 answers

docker-compose centos7 nginx

I want to mimic a centos7 server with phpfpm, nginx, mysql on Docker for Mac. Currently I have this in my docker-compose.yml, but, haven't stated anything about an OS anywhere. version: '2' services: web: build: . image:…
joe
  • 113
  • 1
  • 5
1
vote
0 answers

Are links deprecated in Docker Compose?

According to the Docker docs, links are described as "legacy". In particular, there's this warning: Warning: The --link flag is a deprecated legacy feature of Docker. It may eventually be removed. Unless you absolutely need to continue using it, we…
Lorin Hochstein
  • 4,868
  • 15
  • 54
  • 72
1
vote
1 answer

(NGINX LB + docker-compose) Stop 1 service and now only use the other one

I'm using NGINX inside docker-compose with 2 node services. The load balancing is working. Not sure if this is how it should be, but my page load goes to ping1, then the CSS file loads from service ping2, then the next file from ping1, and... Where…
1
vote
1 answer

Mysql needs to be run as root (docker)

I have some trouble to run my mysql docker. Here is my error : testmysql | + echo 'Finished mysql_install_db' testmysql | Finished mysql_install_db testmysql | + pid=59 testmysql | + mysql=(mysql --protocol=socket -uroot -hlocalhost…
Skullone
  • 195
  • 1
  • 1
  • 10
1
vote
1 answer

How external links in docker-compose works?

In docker compose we have external_links option, but how it work? Just link writes to /etc/hosts, but external_links is not. Please explain how this option is working, because in docks no one words about it.
John Smith
  • 15
  • 1
  • 3
1
vote
2 answers

Docker Compose can't get environment variables and relation information

I'm trying to build an Apache-PHP + MySQL + PHPMyAdmin entities environment without success. I reduce my project as simple as possible with thoses files : test-docker $ ls -la total 24 drwxrwxr-x 2 david david 4096 janv. 18 11:01 . drwxrwxr-x 20…
David
  • 113
  • 3
1
vote
0 answers

Fail systemd with docker-compose on ubuntu server 16.04

I have a docker-compose project that I would like to control through systemd. I have the next file in systemd. [Unit] Description=My Server…
carson314
  • 11
  • 2
1
vote
1 answer

How to address container for logging using docker-compose

A container described in docker-compose.yml uses logging extension to send log to a fluentd container. version: "2" services: fluentd: image: fluent/fluentd:v0.14.8 container_name: fluentd nginx: image: nginx:1.11.5 …
Kartoch
  • 233
  • 4
  • 14
1
vote
0 answers

Can't start docker-compose with systemd: "aufs au_opts_verify: dirperm1 breaks the protection by the permission bits on the lower branch" error

In order to use docker-compose on staging machine I followed https://docs.docker.com/engine/admin/host_integration/ article and build the following…
lessless
  • 11
  • 2
1
vote
0 answers

Running a command in a container and copying resultying files to host in one docker call

I'm trying to use docker to run a PLINK command. PLINK uses intermediate files to store information required for subsequent commands. For what I am trying to do, I can't run all the PLINK commands in a single docker call so the only workaround I…
tkb
  • 11
  • 1
1
vote
1 answer

docker-compose // piwik // error during run

I try to switch all my app to docker. The configuration: I used nginx as server. With docker i will use it as proxy: # nginx -v nginx version: nginx/1.4.6 (Ubuntu) Docker version: # docker version Client: Version: 1.11.1 API version: 1.23 …
jbo
  • 41
  • 1
  • 5
1
vote
0 answers

Docker + VPN LAN to LAN

We just migrated our applications to a Docker environment. I have many containers running my Python Application in my VM. (4 containers per VM). This is a multi-tenant application. This application requires to connect to specific customer…
gogasca
  • 313
  • 2
  • 15
1
vote
2 answers

Cannot start container : failed to create endpoint X on network bridge:

I'm using following system: [alexus@wcmisdlin02 Desktop]$ rpm -q docker docker-1.9.1-25.el7.centos.x86_64 [alexus@wcmisdlin02 Desktop]$ cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) [alexus@wcmisdlin02 Desktop]$ uname -a Linux…
alexus
  • 12,342
  • 27
  • 115
  • 173
1
vote
1 answer

Docker nginx ssl error

When I raise the container, I get the following errors: nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh nginx | /docker-entrypoint.sh: Configuration complete; ready for start up nginx | 2022/09/04…
Bronix
  • 45
  • 4