Browse Source

env vars to avoid collisions

shared-host
Ignacio Falco 4 years ago
parent
commit
d74cafe6f2
2 changed files with 10 additions and 7 deletions
  1. 7
    7
      docker-compose.yml
  2. 3
    0
      dotenv

+ 7
- 7
docker-compose.yml View File

7
 services:
7
 services:
8
   postgres:
8
   postgres:
9
     image: postgres:11.8
9
     image: postgres:11.8
10
-    container_name: postgres-scalelite
10
+    container_name: postgres-scalelite${-:ORGANIZACION}
11
     restart: unless-stopped
11
     restart: unless-stopped
12
     ports:
12
     ports:
13
       - "127.0.0:54320:5432"
13
       - "127.0.0:54320:5432"
37
 
37
 
38
   scalelite-nginx:
38
   scalelite-nginx:
39
     image: ${SCALELITE_REPO:-blindsidenetwks}/scalelite:${SCALELITE_TAG:-v1}-nginx
39
     image: ${SCALELITE_REPO:-blindsidenetwks}/scalelite:${SCALELITE_TAG:-v1}-nginx
40
-    container_name: scalelite-nginx
40
+    container_name: scalelite-nginx${-:ORGANIZACION}
41
     restart: unless-stopped
41
     restart: unless-stopped
42
     ports:
42
     ports:
43
-      - "80:80"
44
-      - "443:443"
43
+      - "${NGINX_PORT}:80"
44
+      - "${NGINX_PORT_SSL}:443"
45
     volumes:
45
     volumes:
46
       - ./log/nginx/:/var/log/nginx
46
       - ./log/nginx/:/var/log/nginx
47
       - ./data/certbot/conf:/etc/nginx/ssl
47
       - ./data/certbot/conf:/etc/nginx/ssl
57
 
57
 
58
   scalelite-api:
58
   scalelite-api:
59
     image: ${SCALELITE_REPO:-blindsidenetwks}/scalelite:${SCALELITE_TAG:-v1}-api
59
     image: ${SCALELITE_REPO:-blindsidenetwks}/scalelite:${SCALELITE_TAG:-v1}-api
60
-    container_name: scalelite-api
60
+    container_name: scalelite-api${-:ORGANIZACION}
61
     restart: unless-stopped
61
     restart: unless-stopped
62
     ports:
62
     ports:
63
       - "3000:3000"
63
       - "3000:3000"
78
 
78
 
79
   scalelite-poller:
79
   scalelite-poller:
80
     image: ${SCALELITE_REPO:-blindsidenetwks}/scalelite:${SCALELITE_TAG:-v1}-poller
80
     image: ${SCALELITE_REPO:-blindsidenetwks}/scalelite:${SCALELITE_TAG:-v1}-poller
81
-    container_name: scalelite-poller
81
+    container_name: scalelite-poller${-:ORGANIZACION}
82
     restart: unless-stopped
82
     restart: unless-stopped
83
     environment:
83
     environment:
84
       - REDIS_URL=${REDIS_URL:-redis://redis:6379}
84
       - REDIS_URL=${REDIS_URL:-redis://redis:6379}
92
 
92
 
93
   scalelite-recording-importer:
93
   scalelite-recording-importer:
94
     image: ${SCALELITE_REPO:-blindsidenetwks}/scalelite:${SCALELITE_TAG:-v1}-recording-importer
94
     image: ${SCALELITE_REPO:-blindsidenetwks}/scalelite:${SCALELITE_TAG:-v1}-recording-importer
95
-    container_name: scalelite-recording-importer
95
+    container_name: scalelite-recording-importer${-:ORGANIZACION}
96
     restart: unless-stopped
96
     restart: unless-stopped
97
     environment:
97
     environment:
98
       - REDIS_URL=${REDIS_URL:-redis://redis:6379}
98
       - REDIS_URL=${REDIS_URL:-redis://redis:6379}

+ 3
- 0
dotenv View File

25
 ### Optional for init-letsencrypt.sh when using certbot for generating signed SSL certificates
25
 ### Optional for init-letsencrypt.sh when using certbot for generating signed SSL certificates
26
 #LETSENCRYPT_EMAIL=
26
 #LETSENCRYPT_EMAIL=
27
 #LETSENCRYPT_STAGING=0 # Set to 1 if you're testing your setup to avoid hitting request limits
27
 #LETSENCRYPT_STAGING=0 # Set to 1 if you're testing your setup to avoid hitting request limits
28
+#ORGANIZACION=
29
+#NGINX_PORT=
30
+#NGINX_PORT_SSL=

Loading…
Cancel
Save