kklepper
kklepper
Thanks a lot for the clarification! So I just didn't understand basic concepts. My sincere apology!
@Neil-Ni Your question was not for me, but this is what I get: ``` ubuntu@ip-172-31-30-16:~/_registrator/consul-demo$ docker-compose run lb consul-template -consul consul:8500 -template "/etc/consul-templates/app.conf:/tmp/result:service nginx restart" -dry [fix-attrs.d] applying owners &...
@Neil-Ni Thanks a lot! This is what I get in dry run: ``` ubuntu@ip-172-31-30-16:~/_registrator/consul-demo$ sudo docker-compose run lb consul-template -consul consul:8500 -template "/etc/consul-template/templates/app.ctmpl:/tmp/result:service nginx restart" -dry Creating consuldemo_consul_1 Building lb...
I just found out that -dry refers to consul-template and am reading up to understand what's happening. Thank you. I may come back to you either way.
This indicates that you have a file in `/etc/consul-template/templates/` which I don't have. ``` ubuntu@ip-172-31-30-16:~/_registrator/consul-demo/lb$ cat consul-template/conf/app.conf template { source = "/etc/consul-template/templates/app.ctmpl" destination = "/etc/nginx/conf.d/app.conf" command = "nginx -s reload"...
Ah, I see my mistake with template location. `docker-compose.yml` puts things in place inside the container, and then it is copied for nginx. I think I understand this now. Thank...
Excuse me, I don't know. Which IP should I use then? The one I used before looks pretty much like a public IP I used a couple of days before....