docker-compose

Docker compose VSTS task failder

非 Y 不嫁゛ 提交于 2019-12-25 01:35:46
问题 I'working on Asp.Bet Core 2 app with MSSQL on Linux. I would like to configure CI and CD to Azure. I defined docker-compose task in Visual Studio Team Services, but I'm getting an error. 2017-11-09T20:24:09.4725450Z ##[section]Starting: Create images 2017-11-09T20:24:09.4801610Z ============================================================================== 2017-11-09T20:24:09.4817660Z Task : Docker Compose 2017-11-09T20:24:09.4835680Z Description : Build, push or run multi-container Docker

can't connect rails puma server with nginx reverse proxy

谁说胖子不能爱 提交于 2019-12-25 01:35:07
问题 Hello I am trying to setup a reverse proxy with nginx and docker container rails app, public static files are served correctly but can not access to my app. the nginx error log says: 2018/12/08 16:46:45 [error] 4093#4093: *350 could not find named location "@puma", client: xx.xxx.xxx.xx, server: my.app, request: "GET /en/users/sign_in HTTP/2.0",host: "my.app", referrer: "https://my.app/" my nginx config is this: upstream puma { server 0.0.0.0:3000; } server { listen 443 ssl http2; listen [::]

Deploy Ansible project which include a docker-compose.yml

让人想犯罪 __ 提交于 2019-12-25 01:24:18
问题 I woud like to use Ansible to deploy one of my project (let's call it project-to-deploy ). project-to-deploy can be run locally using a docker-compose.yml file, which, among other things, mount the following volumes inside the docker-container . version: "2" services: database: image: mysql:5.6 volumes: - ./docker/mysql.init.d:/docker-entrypoint-initdb.d messages: image: private.repo/project-to-deploy:latest Nothing more useful here. To run the project: docker-compose up . I have created a

Docker: Not able to connect to Redis when using docker run instead of docker-compose up

这一生的挚爱 提交于 2019-12-25 01:23:14
问题 I'm using docker tool belt on windows home edition. I'm trying to use Node with Redis using docker-compose, it is working well when I'm running the image using docker-compose up (in the same source directory), but when I try to run it using docker run -it myusername/myimage , my Node app is not isn't able to connect to Redis. throwing: Error: Redis connection to redis-server:6379 failed - getaddrinfo ENOTFOUND redis-server at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26) { errno:

ERROR 1007 (HY000) at line 1: Can't create database 'mgsv'; database exists

ε祈祈猫儿з 提交于 2019-12-25 01:04:15
问题 I converted this original project into a docker-compose project here and followed a their setup instructions. It seems that I am not able to connect with the browser. The SQL file contains the database schema and looks like this: CREATE DATABASE mgsv; CREATE USER 'mgsv_user'@'localhost' IDENTIFIED BY 'mgsvpass'; GRANT SELECT, INSERT, CREATE, DROP ON mgsv.* TO 'mgsvuser'@'localhost'; use mgsv; CREATE TABLE IF NOT EXISTS `userinfo` ( `id` int(10) NOT NULL AUTO_INCREMENT, `email` text NOT NULL,

“file not found” on travis-ci when running pytest from tox using docker

穿精又带淫゛_ 提交于 2019-12-25 00:43:16
问题 I'm trying to run my tests throught travis-ci, but i receive "file not found tests" error. When i run local with same command everything is ok, but in travis i receive this error. I think its because tests folder which in root of my project located somewhere in other directory - in directory where travis copy github repo. I try this settings in tox.ini but none of whem help: commands = py.test $TRAVIS_BUILD_DIR/tests {posargs} passenv = TRAVIS_BUILD_DIR commands = py.test $TRAVIS_BUILD_DIR

equivalent of docker option --config in docker-compose

孤者浪人 提交于 2019-12-25 00:42:13
问题 I'm trying to run mongo with docker-compose. From the docker mongo page I have the following command $> docker run --name some-mongo -v /my/custom:/etc/mongo -d mongo --config /etc/mongo/mongod.conf version: '3' services: db: image: mongo:4 ports: - "27017:27017" volumes: - ./storage/mongo:/data/db:rw Now I would also like to define the mongod.conf; --config /etc/mongo/mongod.conf but how can you do that inside docker-compose? 回答1: The --config is part of mongo , not docker . You may still

How to run command using docker-compose

强颜欢笑 提交于 2019-12-25 00:37:40
问题 I had a dockerfile which tried to install nginx like following: Dockerfile FROM ubuntu:latest RUN apt-get update RUN apt-get install -y expect RUN apt-get -y install software-properties-common RUN apt-add-repository ppa:ondrej/php RUN apt-get -y install php7.1 php7.1-fpm RUN apt-get install php7.1-mysql RUN apt-get -y install nginx For some reason, I tried to run dockfile inside docker-compose: version: '3' services: web: build: context: . dockerfile: Dockerfile ports: - "3011:80" command:

How to make connection between Docker Containers

有些话、适合烂在心里 提交于 2019-12-24 23:09:06
问题 I am having connection issues when I try to connect my goLang GORM service to a Docker Postgress container. I believe the problem is my golang code at the bottom at the connection string. docker-compose up Recreating postgress_postgre_1 ... done Attaching to postgres postgres | 2018-12-11 21:08:48.283 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 postgres | 2018-12-11 21:08:48.283 UTC [1] LOG: listening on IPv6 address "::", port 5432 postgres | 2018-12-11 21:08:48.291 UTC [1]

How can I stop a MySQL docker container which populates a volume after database initialisation is complete?

微笑、不失礼 提交于 2019-12-24 21:49:35
问题 I have a docker-compose.yml file with the following: populated_db: container_name: populated_db restart: always image: mysql volumes: - ./test_database.sql:/docker-entrypoint-initdb.d/a.sql - populated_test_db:/var/lib/mysql ports: - "33061:3306" environment: MYSQL_RANDOM_ROOT_PASSWORD: "true" MYSQL_DATABASE: aaaa MYSQL_USER: aaaa MYSQL_PASSWORD: aaaa db: container_name: db image: mysql ports: - "33060:3306" volumes: - type: volume source: populated_test_db target: /var/lib/mysql volume: