Questions tagged [docker-compose]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Connect to mongodb replicaset running on docker behing nginx proxy

I'm using docker-compose for mongodb replica set. Everything work fine on my host where docker is running. I had problems when I tried to connect from another client which is in the same network.I ...
0
votes
2answers
1k views

Changing port of mariadb in docker-compose

I run a number of WordPress sites using docker-compose (and nginx-proxy). So I can use the same docker-compose file for each site I use .env. I want each of the MariaDB containers to use different ...
1
vote
1answer
192 views

Traefik error: invalid certificate, missing extension

I'm trying to setup Traefik for https, in docker. But I get the error: traefik | time="2020-07-10T11:33:46Z" level=error msg="Unable to obtain ACME certificate for domains "my....
0
votes
1answer
4k views

docker-compose static ip does not work

I want to assign static ip to nginx, but it doesn't work at all. I have no idea where I'm doing it wrong. Could you please help? docker.compose.yml version: '3' services: web: container_name: ...
0
votes
1answer
2k views

docker-compose link with container running on host network

I have a postgres container running as host network_mode and a Nextcloud container running on default (bridged) network with port 8080:80. How can I link the containers so that Nextcloud can access ...
0
votes
1answer
77 views

Nginx Docker container always restarting

My current docker-compose.yml looks like this: version: '3' services: testsite-nginx: image: nginx:alpine container_name: test_site_nginx restart: unless-stopped ...
34
votes
8answers
37k views

Check is container/service running with docker-compose

I am using the docker-compose. Some commands like up -d service_name or start service_name are returning right away and this is pretty useful if you don't want the containers running to depend on ...
0
votes
1answer
1k views

Docker Error creating external connectivity network

i am trying to deploy a portainer/agent stack with the recommended docker compose configuration as suggested in the official documentation (https://portainer.readthedocs.io/en/stable/agent.html), and ...
1
vote
2answers
2k views

nginx can't find /etc/letsencrypt/options-ssl-ngin.conf file

I'm trying to serve a python-django webapp using a linux box (running ubuntu 18.04) with nginx, gunincorn, letsencrypt and docker. After following a number of online tutorials I have been successful ...
13
votes
4answers
4k views

Docker turn anonymous volume into named volume

I have tried out a docker image using the docker command line without specifying names for volumes. Now I found that I want to continue using this container/image but by defining the container in ...
0
votes
1answer
8 views

How to connect to PostgreSql database in docker (linux) container from windows desktop via vbscript

I face the following error in trying to connect to PostgreSql database in (linux) docker container from windows desktop via vbscript: Microsoft OLE DB Provider for ODBC Drivers (30, 11) : FATAL: ...
2
votes
2answers
4k views

EC2 Instance Freezes

I am experiencing sudden freezes in one particular instance. Here some details of the instance: Type: t2.micro Region/av. zone: us-west-2b OS: amzn-ami-hvm-2018.03.0.20180811-x86_64-gp2 (ami-a0cfeed8) ...
0
votes
1answer
36 views

Can't 'php artisan migrate' inside docker

Trying to run 'php artisan migrate' in docker returned following error Illuminate\Database\QueryException could not find driver (SQL: select * from information_schema.tables where table_schema = ...
2
votes
1answer
1k views

Docker mount command (mount failed: Unknown error -1)

I'm trying to migrate my existing application to Docker, it mounts an image but is getting an error: mount failed: Unknown error -1 These are the steps: Create an empty floppy image of 1.44 MB as ...
0
votes
0answers
25 views

Kubernetes deployment - don't restart pods if image checksum hasn't changed

We have a system that currently uses docker-compose for deployment of containers (effectively docker-compose pull && docker-compose up) and are in the process of converting the system to ...
10
votes
3answers
40k views

Can not access mysql docker

I am using docker-compose to create mysql container. I get host IP 172.21.0.2. But when I connect mysql. I get error: My docker-compose.yml: version: '2' services: ### Mysql container mysql: ...
1
vote
1answer
38 views

Traefik SSL for a service that runs on non-standard port

Disclaimer: My Docker and my Traefik knowledge is weak. I have several times tried following the Traefik docs and I usually just get confused, possibly because I want to tackle more than the simplest ...
2
votes
0answers
39 views

Deploying docker instances based on user input

I have a use case where I would like to automatically deploy some services (say 2-3) whenever a user signs up. The services are available as pre-built docker images that are the same for all users, ...
0
votes
0answers
19 views

mount directory in docker container for nginx-webserver, using docker-compose // Piwigo Nginx NAS Docker

I'm trying to mount a specific directory from a docker host system to a Nginx-Webserver, using docker-compose, but I couldn't reach the expected content in the web application (Piwigo Photo-Gallery). ...
2
votes
1answer
1k views

How to setup IPv6 with docker-compose

I am using Ubuntu 18.04 on DigitalOcean, with IPv6 turned on: PUBLIC IPV6 ADDRESS: xxxx:xxxx:2:d0::216f:3001 PUBLIC IPV6 GATEWAY: xxxx:xxxx:2:d0::1 CONFIGURABLE ADDRESS RANGE: xxxx:xxxx:2:d0::216f:...
0
votes
0answers
14 views

How can I use docker-compose to deploy to production using an env_file on the server?

Take the following simplified example: services: app: image: alpine env_file: config.env entrypoint: - /bin/sh - -c - 'echo "Var is: $$MY_VAR"' I have config....
1
vote
1answer
56 views

Handle docker’s variable ip in iptables

On my production environment I have some apps in Docker that need to connect to backing services eg the database on the same host. I found I needed to make an exception in iptables to accept these ...
2
votes
1answer
4k views

Getting “Can't create/write to file '/var/lib/mysql/is_writable'” using docker (inside vagrant on OS X)

I am trying to use docker-compose/docker inside a vagrant machine hosted on OS X. Running 'docker-compose up' always fails with mysqld: Can't create/write to file '/var/lib/mysql/is_writable' (...
0
votes
0answers
32 views

what should be the ipv4_address when deploying docker compose cluster on azure vm?

I have the following docker compose file that I want to deploy to a Azure Viurtual Machine. I am new to deployment and cloud. I am really confused as to what to right in place of ipv4_address? In the ...
0
votes
2answers
5k views

Why does docker-compose issue a “No such file or directory” when the file is there?

I am testing a bare metal recovery of my server which basically starts a set of docker container with my services. I recovered from a backup /etc/docker, where I keep all the configuration and ...
0
votes
0answers
13 views

How to check that docker-compose did resource allocation

I'm trying to allocate resources inside docker-compose: version: '3' services: db: # omitted for brevity my-service: image: my-image restart: always ports: - "8080:8080&...
0
votes
1answer
441 views

CryptographyDeprecationWarning: Python 3.5 support will be dropped in the next release of cryptography. Please upgrade your Python

I'm trying to use docker-compose (which was installed via pip3), yet running into following warning everytime I do anything: # docker-compose version /usr/local/lib/python3.5/dist-packages/paramiko/...
1
vote
1answer
3k views

Prometheus container connection refused

I have prometheus , nginx-vts , php and nginx-vts-exporter all in separated containers i'm trying to get metrics to prometheus from the exporter ,, it keeps telling me Get http://127.0.0.1:9913/...
0
votes
1answer
35 views

docker-compose for JFrog artifactory OSS version?

I want to try out JFrog artifactory OSS using docker compose. I have found: https://jfrog.com/download-jfrog-platform/ https://api.bintray.com/content/jfrog/artifactory-pro/org/artifactory/pro/docker/...
0
votes
0answers
244 views

Docker Compose ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network

I have docker running on a centOS VM. All of a sudden my docker stopped working. When running docker-compose up, I get the following error every time: Creating network "nginx-php" with the ...
0
votes
1answer
36 views

Single Nginx Docker vs Multiple Nginx Docker for websites

Forgive me if I am asking a stupid question, but I am building a server where I will host multiple Flask websites Docker Container using Nginx Docker. My question now is: is it better to have one main ...
0
votes
0answers
26 views

Host multiple web apps on NGINX Docker

I want to host multiple Flask apps on my docker nginx image. I want each app to listen on a different port. However, i am unable to do so. nginx.conf server { listen 80; location / { ...
0
votes
1answer
138 views

DockerFile and docker-compose (Homeassistant and Node-red Nodes)

I hope this is an easy one. I'm using Docker to run Homeassistant and Node-Red containers on a Raspberry Pi 4. Based on this guide they recommend making a DockerFile to install Node-Red nodes to ...
1
vote
3answers
3k views

Nginx on Docker cannot access bind mount

Summary: I'm trying to set up an Nginx container as part of a Docker stack. I want to use a bind mount to make a folder on my computer available to the container as /data/www, and use that as the ...
1
vote
3answers
827 views

How to install docker-compose on Fedora CoreOS

I have been using Fedora CoreOS version 31.20200505.3.0 on digitalocean (image took from here https://getfedora.org/coreos/download?tab=cloud_operators&stream=stable) Default user core, but need ...
1
vote
1answer
2k views

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 ...
46
votes
4answers
86k views

How is Docker Compose version 2 “volumes” syntax supposed to look?

With Docker Compose v1.6.0+, there now is a new/version 2 file syntax for the docker-compose.yml file. The changes include a separate top level key named volumes. This allows to "centralize" volume ...
1
vote
1answer
331 views

Backup of dockerized Wordpress

I want to backup a dockerized wordpress. Ordinarily I'd restore a docker app from backups like this: spin up a new database container restore a sql dump to the database container spin up a new app ...
0
votes
0answers
139 views

Traefik: Unable to obtain ACME certificate for domains DNS

traefik level=error msg="Unable to obtain ACME certificate for domains \"example.domain.com\": cannot get ACME client get directory at 'https://acme-v02.api.letsencrypt.org/directory': ...
0
votes
0answers
77 views

Nginx reverse proxy on Host for docker containers

I have an Nginx reverse proxy on my host that serves some docker containers on the same host.I did this so users won't need to input the port to gain access to the web interfaces.The problem i'm ...
0
votes
0answers
16 views

“Docker-compose run” shows backend running but can't access from host

I was trying to use docker for my flask backend along with postgres database. Here is my docker-compose.yml file version: "2" services: api: ports: - 5000:5000 build: ...
0
votes
0answers
16 views

How can I limit exposure/ port mapping to specific networks using docker-compose?

I have a docker-compose file which has four networks, named: pub1 pub2 (I am not sure whether this is even required) int1 int2 together with multiple service, being in a combination of these ...
0
votes
1answer
130 views

Docker NGINX + PHP-FPM : Error 502 Bad Gateway

nginx site conf: server { listen 80; listen [::]:80; server_name example.com www.example.com; root /var/www/example.com; location / { index index.php index.html; } ...
0
votes
0answers
66 views

Dockerized NGINX/STRAPI/DB/CLIENT setup

For development purposal I would like to implement this: Dockerized strapi app But there is a problem with routing to /dashboard/. It should load static files from strapi container, which is not doing....
0
votes
0answers
111 views

How to configure Wireguard to allow Internet access?

I have an Ubuntu 20.04.1 LTS to host a linuxserver/wireguard Docker container. Clients can successfully connect to the Wireguard server, but I'm unable browse Internet websites on the clients while ...
0
votes
1answer
2k views

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 ...
2
votes
1answer
1k views

Prepare docker installation for “offline” environment

We're going to deploy our codebase in an environment with no outbound internet access - using docker. However - we do not seem to be able to pre-build the entire thing so we don't have to pull images ...
0
votes
0answers
80 views

How to run Gatsby Docker with Docker Compose

I am trying to setup Gatsby which will eventually be placed in a devcontainer in VS Code. Before doing that, I'm trying to get Gatsby to run in Docker with docker-compose locally. I found a ...
0
votes
0answers
35 views

Nginx - Angular not passing Authorization header

This is the schematic of my microservices setup: To put in words: request comes from browser nginx reverses proxy the request to the angular container angular container makes request to the backend ...
0
votes
0answers
56 views

Jitsi and OnlyOffice on one Server (Ubuntu 18.04)?

I'm creating a intranet right now and facing some problems I cant find a solution for. I want to install OnlyOffice (a openSource Groupware) and Jitsi (openSource video conferencing) all trough Docker ...

1
2 3 4 5
9