skip to Main Content

Docker Compose doesn't seem to read env variables

This is my docker-compose.yml version: "3" services: db: build: context: db volumes: - donazioni-vol:/var/lib/mysql env_file: - config.env generatore: build: context: generatore env_file: - config.env depends_on: - db volumes: donazioni-vol: This is my config.env file: MYSQL_USER=dockerdev MYSQL_PASSWORD=topolino MYSQL_ROOT_PASSWORD=topolino MYSQL_DATABASE=solidarieta This is…

VIEW QUESTION

docker compose backend container not found

I have two docker containers, one with a fastAPI back-end, one with a streamlit app as front-end. This is my docker compose yaml: version: '3.9' services: semcity-frontend: image: semcity-frontend environment: - SEMCITY_BACKEND_URL=http://semcity-backend:8003/ ports: - 8004:8004 networks: local: depends_on: - semcity-backend…

VIEW QUESTION

Postgres Docker image sometimes fail to start

I'm working on a Python project which uses Docker Compose with a Postgres service. compose/postgresql/Dockerfile: FROM postgres:16.1-bullseye COPY init.sql /docker-entrypoint-initdb.d/init.sql compose/postgresql/init.sql: (basic account setup) -- Create database & user CREATE DATABASE ${POSTGRES_DB}; CREATE USER ${POSTGRES_USER} WITH ENCRYPTED PASSWORD ${POSTGRES_PASSWORD}; --…

VIEW QUESTION
Back To Top
Search