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

Dockerfile For C# Azure Function App With PlayWright

New and learning Dockerfile; need help to edit the following Dockerfile to containerize a C# Azure Function App with Playwright. Here's part of the function code: using System.Net; using Func_MyFunction.Interfaces; using Func_MyFunction.Models; using Microsoft.Azure.Functions.Worker; using Microsoft.Azure.Functions.Worker.Http; using Microsoft.Extensions.Logging; using Microsoft.Playwright;…

VIEW QUESTION

Exit status 1 while running docker compose of spring boot application with mysql db

I am trying to docrize an application of spring boot which also utilizes a mysql db also Below is the docker file FROM maven:3.8.3-openjdk-17 AS build EXPOSE 8081 ADD /target/oks-0.0.1-SNAPSHOT.jar oks-0.0.1-SNAPSHOT.jar ENTRYPOINT ["java","-jar","oks-0.0.1-SNAPSHOT.jar"] The application-develop.properties is below spring.datasource.url=jdbc:mysql://localhosts:3306/oks?useUnicode=true&characterEncoding=utf8 spring.datasource.username=root spring.datasource.password…

VIEW QUESTION
Back To Top
Search