Answer the question
In order to leave comments, you need to log in
In docker, a curl request from one container to another does not go?
There are 2 containers
version: '2'
services:
php:
build: ./
restart: always
volumes:
- ~/.composer-docker/cache:/root/.composer/cache:delegated
- ./:/app:delegated
ports:
- '9000:80'
network_mode: test
db_host:
image: postgres:10.3-alpine
restart: always
ports:
- "5432:5432"
volumes:
- ./docker-entrypoint:/docker-entrypoint-initdb.d
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
network_mode: test
FROM yiisoftware/yii2-php:7.1-apache
# Apache modules
RUN a2enmod rewrite
version: '2'
services:
php:
build: ../common/docker/
restart: always
volumes:
- ~/.composer-docker/cache:/root/.composer/cache:delegated
- ./:/app:delegated
ports:
- '9001:80'
network_mode: test
redis:
image: redis:4.0.9-32bit
ports:
- "6379"
volumes:
- ../common/docker/redis-client-data:/data
network_mode: test
Answer the question
In order to leave comments, you need to log in
There are 2 containers
networks:
bridge1:
external:
name: internal_bridge
services:
some-service:
networks:
bridge1:
aliases:
- some-service-project1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question