October 2018
Intermediate to advanced
420 pages
10h 26m
English
The three services of the stack will be configured in the same configuration file, named docker-compose.yml. The first service to configure is Traefik. The first part with the definition of the reverse proxy is the following one:
version: '3'services: reverse-proxy: image: traefik command: --api --docker ports: - "80:80" - "8080:8080" volumes: - /var/run/docker.sock:/var/run/docker.sock
The version number identifies the version of the configuration file specifications. Then, the services section contains the definition of all containers. For now, there is only one container named reverse-proxy. The content of this section is the actual specification of the container.
The image parameter is the name of the image to use. If ...
Read now
Unlock full access