#### Category : environment

I’m new to Docker compose and looking for a way to scale two services together at the same time and set an environments for each replica. This docker-compose example for what I want to achieve version: ‘3’ networks: my-network: ipam: driver: default config: – subnet: 172.20.0.0/16 services: my-service: image: service:latest networks: – my-network my-client: image: ..

In my docker-compose file environment: &airflow-common-env AIRFLOW__CORE__SQL_ALCHEMY_CONN: "postgresql+psycopg2://${AWS_DB_INSTANCE_USERNAME}:${AWS_DB_INSTANCE_PASSWORD}@${AWS_DB_INSTANCE_ADDRESS}/postgres" AIRFLOW__CELERY__RESULT_BACKEND: "db+postgresql://${AWS_DB_INSTANCE_USERNAME}:${AWS_DB_INSTANCE_PASSWORD}@${AWS_DB_INSTANCE_ADDRESS}/postgres" AIRFLOW__CELERY__CELERY_RESULT_BACKEND: "db+postgresql://${AWS_DB_INSTANCE_USERNAME}:${AWS_DB_INSTANCE_PASSWORD}@${AWS_DB_INSTANCE_ADDRESS}/postgres Also: env_file: – .myenv.env In which within myenv.env AWS_DB_INSTANCE_USERNAME=myusername AWS_DB_INSTANCE_PASSWORD=mypassword AWS_DB_INSTANCE_ADDRESS=myconnectionstring However, whithin the container: docker exec -it 75e2d3b89cf9 env | grep -i AIRFLOW__CORE__SQL_ALCHEMY_CONN AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://:@/postgres why is that? Note that the environment variables from .myenv.env are indeed present in the container, e.g. docker .. Read more I would like to set a list of environment variables as specified in an env.list file during the build process, i.e. have a respective command in the Dockerfile. Like this: FROM python:3.9.4-slim-buster COPY env.list env.list # Here I need a corresponding command: ENV env.list The file looks like this: FOO=foo BAR=bar My book of already .. Read more I want to run a container and also pass to it some env vars. One of them is a GCP private (service account) key which is a multiline string, more or less in the following format: { "type": "service_account", "project_id": "my-project", "private_key_id": "39dj4847dhcba0484hb", "private_key": "—–BEGIN PRIVATE KEY—–nDDik499dkdm4n4849doidkdjm$90f9fkcmn—–END PRIVATE KEY—–n", "client_email": "[email protected]", "client_id": "383748490382672627384745645363", "auth_uri": "https://accounts.google.com/o/oauth2/auth", ..

I’m trying to create a general docker development environment, but having some issues with it. My goal is to have only one container that I can use for any related project that I have. For example, instead of installing python in my computer I’d like to use a container with python installed. The idea is ..

Let suppose I have an env file with DB_PW=123 And a docker command that expects -env MYSQL_ROOT_PASSWORD=123 Is there a way to take that DB_PW from the env file and assign it to MYSL_ROOT_PASSWORD in the command line? (obviously not having to add a line to the env file with the explicit assignment) I have ..

I am running a docker container online under a subdomain (docker.domain.com) I am having problems updating my container to the newer version and want to create an identical container offline to tun on local host to see if I can debug the issue The problem I have is that I have set up base urls ..