Answer the question
In order to leave comments, you need to log in
Docker-compose container name conflict?
Colleagues, welcome.
I'm confused, I remember it worked before.
docker-compose-ci.yml
services:
app:
container_name: rmok-ci.app
image: rmok-ci/app:latest
restart: always
build:
context: .
dockerfile: ./docker/php/Dockerfile
volumes:
- symfony_var_cache_audio:/www/var/cache/app/audio
networks:
- symfony
expose:
- 9000
environment:
PHP_INI_SCAN_DIR: ":/usr/local/etc/php/custom.d"
TZ: "Europe/Moscow"
services:
app:
container_name: rmok.app
image: rmok/app:latest
restart: always
build:
context: .
dockerfile: ./docker/php/Dockerfile
volumes:
- symfony_var_cache_audio:/www/var/cache/app/audio
networks:
- symfony
expose:
- 9000
environment:
PHP_INI_SCAN_DIR: ":/usr/local/etc/php/custom.d"
TZ: "Europe/Moscow"
docker-compose up -d --build --remove-orphans
docker-compose -f docker-compose-ci.yml -d --build --remove-orphans
container_name
container name is different. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question