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: ..

Read more

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 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", ..

Read more

I am trying to build my webapp in a gcloud run docker environment. I want to build with staging environments and i was thinking i could use this part: Here is my docker file: FROM tiangolo/node-frontend:10 as build-stage WORKDIR /app COPY package*.json /app/ RUN npm install COPY ./ /app/ ARG configuration=${DOCKER_ENV} RUN node ./node_modules/@angular/cli/bin/ng build ..

Read more