Browse Source

support image tags

Andrew Dolgov 6 months ago
parent
commit
3b2a5c8dcd
2 changed files with 6 additions and 4 deletions
  1. 2 0
      .env-dist
  2. 4 4
      src/docker-compose.yml

+ 2 - 0
.env-dist

@@ -1,6 +1,8 @@
 # Copy this file to .env before building the container.
 # Put any local modifications here.
 
+BUILD_TAG=latest
+
 POSTGRES_USER=postgres
 POSTGRES_PASSWORD=password
 

+ 4 - 4
src/docker-compose.yml

@@ -14,7 +14,7 @@ services:
       - POSTGRES_USER=${POSTGRES_USER}
 
   app:
-    image: cthulhoo/ttrss-fpm-pgsql-static
+    image: cthulhoo/ttrss-fpm-pgsql-static:${BUILD_TAG}
     build: 
       context:
         ./app
@@ -34,7 +34,7 @@ services:
       - db
 
   updater:
-    image: cthulhoo/ttrss-fpm-pgsql-static
+    image: cthulhoo/ttrss-fpm-pgsql-static:${BUILD_TAG}
     build: 
       context:
         ./app
@@ -55,7 +55,7 @@ services:
     command: /updater.sh
 
   web:
-    image: cthulhoo/ttrss-web
+    image: cthulhoo/ttrss-web:latest
     build: ./web
     restart: unless-stopped
     ports:
@@ -66,7 +66,7 @@ services:
       - app
 
   web-ssl:
-    image: cthulhoo/ttrss-web-ssl
+    image: cthulhoo/ttrss-web-ssl:latest
     build: ./web-ssl
     restart: unless-stopped
     environment: