skip to Main Content

How to pass argument to docker-compose

import argparse parser = argparse.ArgumentParser() parser.add_argument( '--strat', type=str, ) args = parser.parse_args() strat = args.strat I would like to right my docker-compose.yml file such as I would just pass my argument from there. I did version: "3.3" services: mm: container_name:…

VIEW QUESTION

flask app service can't connect to postgres service within docker-compose

I am trying to run flask, postgres and nginx services with following docker-compose: version: '3.6' services: postgres: image: postgres:10.5 container_name: postgres hostname: postgres user: postgres ports: - "5432:5432" networks: - db-tier environment: CUSTOM_CONFIG: /etc/postgres/postgresql.conf volumes: - ./postgres/sql/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql - ./postgres/postgresql.conf:/etc/postgres/postgresql.conf command:…

VIEW QUESTION

Bootstrapping a mongoDB via docker-compose

Let's say I have the following docker compose that consists of 2 services: a nodeJS app and a mongoDB database that is backing it: version: "3.8" services: mongodb-local: image: mongo:latest restart: unless-stopped env_file: ./.env # see: https://stackoverflow.com/questions/52373098/disable-default-authentication-in-mongo-docker # environment: #…

VIEW QUESTION
Back To Top
Search