-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work with multiple docker-compose files based app #47
Comments
Hi @ryuheechul. We'll add a possibility to work with override compose configs in the next release. |
Released into v1.3 |
Hi @moonion |
Also call |
hi @igor-lemon 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' |
@moonion So, are you sure that didn't forget to add override configs into project settings? |
Oh, sorry. You can't add override while your first file docker-compose not correct. Later we'll add possibility to assign override configs during adding a project. |
@igor-lemon thanks |
There are docker-compose.override.yml exist.
So it should work with dockstation, since it works well with commands
The text was updated successfully, but these errors were encountered: