Git Product home page Git Product logo

Comments (9)

igor-lemon avatar igor-lemon commented on May 20, 2024

Hi @ryuheechul. We'll add a possibility to work with override compose configs in the next release.

from dockstation.

igor-lemon avatar igor-lemon commented on May 20, 2024

Released into v1.3

from dockstation.

moonion avatar moonion commented on May 20, 2024

It doesn't work for me :(
When I create new project and select paths where exist docker-compose.yml and docker-compose.override.yml. Because my project can't be run without docker-compose.override.yml.

MacOS.
screen

from dockstation.

igor-lemon avatar igor-lemon commented on May 20, 2024

Hi @moonion
Can you share your docker-compose.yml and docker-compose.override.yml configs ?
Also thanks for a bug with button layers...

from dockstation.

igor-lemon avatar igor-lemon commented on May 20, 2024

Also call docker-compose config command into the directory with your configs and share screenshot. Thank you.

from dockstation.

moonion avatar moonion commented on May 20, 2024

hi @igor-lemon
I replaced /.../ and registry/

docker-compose.yml

version: '2'
services:
  app:
  backend:
    links:
      - db
    environment:
      - DB_DATABASE=test
      - DB_HOST=db
      - DB_USERNAME=test
      - DB_PASSWORD=test
    volumes:
      - './data/uploads/images:/var/www/html/uploads/images'
      - './data/uploads/staff/images:/var/www/html/uploads/staff/images'
      - './data/uploads/videos:/var/www/html/uploads/videos'
  db:
    image: mariadb
    environment:
      - MYSQL_DATABASE=test
      - MYSQL_USER=test
      - MYSQL_PASSWORD=test
      - MYSQL_ROOT_PASSWORD=test
    volumes:
      - './data/mysql:/var/lib/mysql'
  nginx:
    image: registry/docker/nginx
    depends_on:
      - app
      - backend
    volumes_from:
      - 'app:ro'
      - 'backend:ro'

docker-compose.override.yml

version: "2"
services:
  app:
    build:
      context: ../app
      dockerfile: Dockerfile.local
    volumes:
      - ../app/src:/usr/src/src
  backend:
     image: registry/test/backend
  nginx:
    ports:
      - "80:80"

docker-compose config

services:
  app:
    build:
      context: /.../test/app
      dockerfile: Dockerfile.local
    volumes:
    - /.../test/app/src:/usr/src/src:rw
  backend:
    environment:
      DB_DATABASE: test
      DB_HOST: db
      DB_PASSWORD: test
      DB_USERNAME: test
    image: registry/test/backend
    links:
    - db
    volumes:
    - /.../data/uploads/images:/var/www/html/uploads/images:rw
    - /.../data/uploads/staff/images:/var/www/html/uploads/staff/images:rw
    - /.../data/uploads/videos:/var/www/html/uploads/videos:rw
  db:
    environment:
      MYSQL_DATABASE: test
      MYSQL_PASSWORD: test
      MYSQL_ROOT_PASSWORD: test
      MYSQL_USER: test
    image: mariadb
    volumes:
    - /.../data/mysql:/var/lib/mysql:rw
  nginx:
    depends_on:
    - app
    - backend
    image: registry/docker/nginx
    ports:
    - 80:80/tcp
    volumes_from:
    - service:app:ro
    - service:backend:ro
version: '2.0'

from dockstation.

igor-lemon avatar igor-lemon commented on May 20, 2024

@moonion So, are you sure that didn't forget to add override configs into project settings?
image

from dockstation.

igor-lemon avatar igor-lemon commented on May 20, 2024

Oh, sorry. You can't add override while your first file docker-compose not correct.
Your app service isn't correct in the first config. You can try to assign build or image option to app service for making the docker-compose.yml file correctly. After that, you can add override configs from settings of the project.

Later we'll add possibility to assign override configs during adding a project.

from dockstation.

moonion avatar moonion commented on May 20, 2024

@igor-lemon thanks

from dockstation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.