Answer the question
In order to leave comments, you need to log in
Why does Docker open port 80 where it shouldn't?
Good morning.
Actually, there is a project with two microservices: site and users. I need the site to be accessible on port 80, and for users all external ports would be closed. For this I use the following configuration:
FROM php:7.2.19-apache
# тут просто устанавливаю все, НИКАКИХ директив, только RUN
EXPOSE 80
FROM php:7.2.19-apache
# тут просто устанавливаю все, НИКАКИХ директив, только RUN
version: '3'
services:
site:
build: './site'
ports:
- 80:80
links:
- "users"
users:
build: './users'
expose:
- 8000
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