From 140bbc0da837f106814e8558fdb5197fc9be3253 Mon Sep 17 00:00:00 2001
From: Benjamin Bertrand <benjamin.bertrand@esss.se>
Date: Tue, 30 Apr 2019 07:15:35 +0200
Subject: [PATCH] Add archiver IP to docker-compose file

nginx doesn't start if it fails to resolve a hostname defined as
proxy_pass.
Adding the archiver to the hosts allow to start the server
outside ESS where the archiver is not resolved.
This is for local testing. The archiver won't be accessible without VPN.
---
 docker-compose.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docker-compose.yml b/docker-compose.yml
index 92af5d1..07e61f2 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -15,6 +15,8 @@ services:
     volumes:
       - ./PythonServer:/app
       - python-data:/var/www/data
+    extra_hosts:
+      - "archiver-01.tn.esss.lu.se:172.16.225.16"
   web:
     image: registry.esss.lu.se/ics-software/ess-public-screens/nginx:master
     build:
@@ -25,6 +27,8 @@ services:
       - python-data:/usr/share/nginx/data:ro
     depends_on:
       - python_server
+    extra_hosts:
+      - "archiver-01.tn.esss.lu.se:172.16.225.16"
     ports:
       - "8000:8000"
 
-- 
GitLab