diff --git a/src/db/Dockerfile b/db/Dockerfile similarity index 100% rename from src/db/Dockerfile rename to db/Dockerfile diff --git a/src/db/init-count-bits.sh b/db/init-count-bits.sh similarity index 100% rename from src/db/init-count-bits.sh rename to db/init-count-bits.sh diff --git a/docker-compose.yml b/docker-compose.yml index 566bd6d..7e30568 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,9 @@ version: '3' services: db: image: cthulhoo/ttrss-db-pgsql-12-count-bits:latest + build: + context: + ./db restart: unless-stopped volumes: - db:/var/lib/postgresql/data diff --git a/src/docker-compose.yml b/src/docker-compose.yml deleted file mode 100644 index ee4a46f..0000000 --- a/src/docker-compose.yml +++ /dev/null @@ -1,21 +0,0 @@ -version: '3' - -# set database password in .env -# please don't use quote (') or (") symbols in variables - -services: - db: - image: cthulhoo/ttrss-db-pgsql-12-count-bits:${BUILD_TAG} - build: - context: - ./db - restart: unless-stopped - volumes: - - db:/var/lib/postgresql/data - environment: - - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - - POSTGRES_USER=${POSTGRES_USER} - -volumes: - db: -