Article 6KA84 A few questions about Docker configuration

A few questions about Docker configuration

by
Jason.nix
from LinuxQuestions.org on (#6KA84)
Hello,
I have some questions about the Docker configuration:
1- I want to start an Nginx container using Docker Compose, what is the problem with the following configuration?
Code:version: '3'
services:
web:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./src:/usr/share/nginx/html
links:
- php
php:
image: php:7-fpm2-How do I update the components of a container? For example, the configuration file above uses PHP version 7, which is outdated.

3- Should the firewall be configured in the container or on the host?

Thank you.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments