Browse Source

fix: pass base .env to container

Nicolas Meienberger 2 years ago
parent
commit
b9439c2733
4 changed files with 10 additions and 6 deletions
  1. 1 0
      docker-compose.dev.yml
  2. 3 2
      docker-compose.rc.yml
  3. 3 2
      docker-compose.test.yml
  4. 3 2
      docker-compose.yml

+ 1 - 0
docker-compose.dev.yml

@@ -78,6 +78,7 @@ services:
     volumes:
       # - /dashboard/node_modules
       # - /dashboard/.next
+      - ${PWD}/.env:/runtipi/.env
       - ${PWD}/src:/app/src
       - ${PWD}/state:/runtipi/state
       - ${PWD}/repos:/runtipi/repos:ro

+ 3 - 2
docker-compose.rc.yml

@@ -1,4 +1,4 @@
-version: "3.7"
+version: '3.7'
 
 services:
   reverse-proxy:
@@ -29,7 +29,7 @@ services:
       POSTGRES_USER: tipi
       POSTGRES_DB: tipi
     healthcheck:
-      test: ["CMD-SHELL", "pg_isready -d tipi -U tipi"]
+      test: ['CMD-SHELL', 'pg_isready -d tipi -U tipi']
       interval: 5s
       timeout: 10s
       retries: 120
@@ -69,6 +69,7 @@ services:
       ARCHITECTURE: ${ARCHITECTURE}
       REDIS_HOST: ${REDIS_HOST}
     volumes:
+      - ${PWD}/.env:/runtipi/.env
       - ${PWD}/state:/runtipi/state
       - ${PWD}/repos:/runtipi/repos:ro
       - ${PWD}/apps:/runtipi/apps

+ 3 - 2
docker-compose.test.yml

@@ -1,4 +1,4 @@
-version: "3.7"
+version: '3.7'
 
 services:
   reverse-proxy:
@@ -28,7 +28,7 @@ services:
       POSTGRES_USER: tipi
       POSTGRES_DB: tipi
     healthcheck:
-      test: ["CMD-SHELL", "pg_isready -d tipi -U tipi"]
+      test: ['CMD-SHELL', 'pg_isready -d tipi -U tipi']
       interval: 5s
       timeout: 10s
       retries: 120
@@ -71,6 +71,7 @@ services:
       ARCHITECTURE: ${ARCHITECTURE}
       REDIS_HOST: ${REDIS_HOST}
     volumes:
+      - ${PWD}/.env:/runtipi/.env
       - ${PWD}/state:/runtipi/state
       - ${PWD}/repos:/runtipi/repos:ro
       - ${PWD}/apps:/runtipi/apps

+ 3 - 2
docker-compose.yml

@@ -1,4 +1,4 @@
-version: "3.7"
+version: '3.7'
 
 services:
   reverse-proxy:
@@ -28,7 +28,7 @@ services:
       POSTGRES_USER: tipi
       POSTGRES_DB: tipi
     healthcheck:
-      test: ["CMD-SHELL", "pg_isready -d tipi -U tipi"]
+      test: ['CMD-SHELL', 'pg_isready -d tipi -U tipi']
       interval: 5s
       timeout: 10s
       retries: 120
@@ -69,6 +69,7 @@ services:
       ARCHITECTURE: ${ARCHITECTURE}
       REDIS_HOST: ${REDIS_HOST}
     volumes:
+      - ${PWD}/.env:/runtipi/.env
       - ${PWD}/state:/runtipi/state
       - ${PWD}/repos:/runtipi/repos:ro
       - ${PWD}/apps:/runtipi/apps