February 2018
Intermediate to advanced
246 pages
6h 3m
English
.env is used within docker-compose.yaml to load template variables. It follows the format of <template-variable>=<value>:
CONCIERGE_PORT=9090 A_M_PORT=6060 N_Z_PORT=7070 OTHERS_PORT=8080 SERVER_PORT=9876
We can view the docker-compose.yaml with substituted values by running the following command:
$ pwd GO-WORKSPACE/src/github.com/last-ent/distributed-go/chapter8/goophr $ docker-compose config services: a_m_librarian: build: context: /home/entux/Documents/Code/GO-WORKSPACE/src/github.com/last-ent/distributed-go/chapter8/goophr/librarian environment: API_PORT: '6060' ports: - 6060:6060/tcp concierge: build: context: /home/entux/Documents/Code/GO-WORKSPACE/src/github.com/last-ent/distributed-go/chapter8/goophr/concierge environment: API_PORT: ...
Read now
Unlock full access