docker-compose

How to put seed data into SQL Server docker image?

て烟熏妆下的殇ゞ 提交于 2020-08-23 04:22:07
问题 I have a project using ASP.NET Core and SQL Server. I am trying to put everything in docker containers. For my app I need to have some initial data in the database. I am able to use docker sql server image from microsoft (microsoft/mssql-server-linux), but it is (obviously) empty. Here is my docker-compose.yml: version: "3" services: web: build: .\MyProject ports: - "80:80" depends_on: - db db: image: "microsoft/mssql-server-linux" environment: SA_PASSWORD: "your_password1!" ACCEPT_EULA: "Y"

docker-compose keeps using old image content

余生长醉 提交于 2020-08-21 12:27:42
问题 We use our gitlab-ci to build fresh images with the latest version of our code. These images are day to day built with the latest tag. We tag images during the release process. My problem is related to the latest tag. We deploy automatically these images on servers to test our product. However, on a test server if we pull the latest docker image (verified by its checksum), stop the compose and up it again, we sometime still have the content of the old image (for example a configuration file).

Docker-compose tagging and pushing

∥☆過路亽.° 提交于 2020-08-21 11:42:32
问题 I have a few docker containers that I try to sync with docker-compose (currently are being run by bash scripts). I'm looking for a way to tag and push them to our ec2 based dockerhub (private server). Using simply docker we did something like this (for each container): $ docker build -f someDockerfile -t some $ docker tag some <docker_hub_server>/some $ docker push <docker_hub_server>/some I'm trying to replicate this in docker-compose . I tried a few things but this one seems close to

what URL can docker container A use to access another docker container B (same dev machine, different projects)

ε祈祈猫儿з 提交于 2020-08-21 11:29:45
问题 Assuming we need to do this very rarely only at certain stages of development (to smoke test a few api calls), what is the simplest possible way to let a dockerized web service in project Bar access a dockerized web service in Project Foo? On a development Mac, Docker Engine: 18.09.2, Compose: 1.23.2, we have Project Foo and Project Bar which each have their own docker-compose files, each with a web service and a database service. Normally they run stand-alone, and are developed independently

what URL can docker container A use to access another docker container B (same dev machine, different projects)

大兔子大兔子 提交于 2020-08-21 11:29:35
问题 Assuming we need to do this very rarely only at certain stages of development (to smoke test a few api calls), what is the simplest possible way to let a dockerized web service in project Bar access a dockerized web service in Project Foo? On a development Mac, Docker Engine: 18.09.2, Compose: 1.23.2, we have Project Foo and Project Bar which each have their own docker-compose files, each with a web service and a database service. Normally they run stand-alone, and are developed independently

what URL can docker container A use to access another docker container B (same dev machine, different projects)

℡╲_俬逩灬. 提交于 2020-08-21 11:29:21
问题 Assuming we need to do this very rarely only at certain stages of development (to smoke test a few api calls), what is the simplest possible way to let a dockerized web service in project Bar access a dockerized web service in Project Foo? On a development Mac, Docker Engine: 18.09.2, Compose: 1.23.2, we have Project Foo and Project Bar which each have their own docker-compose files, each with a web service and a database service. Normally they run stand-alone, and are developed independently

Docker: How to access files from another container from a given container?

冷暖自知 提交于 2020-08-20 11:29:26
问题 Basically I have a main directory and Books Directory (General file structure, there's more but these are the important pieces). So when I fire a request from main to booksServer, it doesn't work because the node modules are missing. That's because the node modules are inside the docker container at a specific path: '/usr/src/app' How can I have main.js see that books (service/container) does have the proper node packages inside this specific path? I think I can use docker-compose, but I

How to use local proxy settings in docker-compose

笑着哭i 提交于 2020-08-18 02:29:10
问题 I am setting up a new server for our Redmine installation, since the old installation was done by hand, which makes it difficult to update everything properly. I decided to go with a Docker image but am having trouble starting the docker container due to an error message. The host is running behind a proxy server, which I think, is causing this problem, as everything else such as wget, curl, etc. is working fine. Error message: Pulling redmine (redmine:)... ERROR: Get https://registry-1

Reload configuration when env variable has changed

∥☆過路亽.° 提交于 2020-08-17 03:39:12
问题 In Startup.cs file I have public Startup(IHostingEnvironment env) { var builder = new ConfigurationBuilder() .SetBasePath(env.ContentRootPath) .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true) .AddEnvironmentVariables(); Configuration = builder.Build(); } There is appsettings.json file with configurations. Like : { "Log" : { "Type" : "value from appsettings.json" } } reloadOnChange set to true , so, when I change appsettings.json then I get immediately a new value of log

Reload configuration when env variable has changed

我与影子孤独终老i 提交于 2020-08-17 03:39:08
问题 In Startup.cs file I have public Startup(IHostingEnvironment env) { var builder = new ConfigurationBuilder() .SetBasePath(env.ContentRootPath) .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true) .AddEnvironmentVariables(); Configuration = builder.Build(); } There is appsettings.json file with configurations. Like : { "Log" : { "Type" : "value from appsettings.json" } } reloadOnChange set to true , so, when I change appsettings.json then I get immediately a new value of log