diff --git a/templates/compose/freshrss-with-mariadb.yaml b/templates/compose/freshrss-with-mariadb.yaml index 4b95f6121..fe066ffb6 100644 --- a/templates/compose/freshrss-with-mariadb.yaml +++ b/templates/compose/freshrss-with-mariadb.yaml @@ -1,4 +1,3 @@ -# ignore: true # documentation: https://freshrss.org/index.html # slogan: A free, self-hostable feed aggregator. # tags: rss, feed @@ -17,13 +16,16 @@ services: volumes: - freshrss-data:/var/www/FreshRSS/data - freshrss-extensions:/var/www/FreshRSS/extensions + depends_on: + freshrss-db: + condition: service_healthy healthcheck: test: ["CMD-SHELL", "bash -c ':> /dev/tcp/127.0.0.1/80' || exit 1"] interval: 5s timeout: 20s retries: 3 - mariadb: + freshrss-db: image: mariadb:11 volumes: - mariadb-data:/var/lib/mysql diff --git a/templates/compose/freshrss-with-mysql.yaml b/templates/compose/freshrss-with-mysql.yaml index a6ccd0640..ca3726a12 100644 --- a/templates/compose/freshrss-with-mysql.yaml +++ b/templates/compose/freshrss-with-mysql.yaml @@ -1,4 +1,3 @@ -# ignore: true # documentation: https://freshrss.org/index.html # slogan: A free, self-hostable feed aggregator. # tags: rss, feed @@ -17,13 +16,16 @@ services: volumes: - freshrss-data:/var/www/FreshRSS/data - freshrss-extensions:/var/www/FreshRSS/extensions + depends_on: + freshrss-db: + condition: service_healthy healthcheck: test: ["CMD-SHELL", "bash -c ':> /dev/tcp/127.0.0.1/80' || exit 1"] interval: 5s timeout: 20s retries: 3 - mysql: + freshrss-db: image: mysql:8 volumes: - mysql-data:/var/lib/mysql diff --git a/templates/compose/freshrss-with-postgresql.yaml b/templates/compose/freshrss-with-postgresql.yaml index 4f8ed3056..8928dfd56 100644 --- a/templates/compose/freshrss-with-postgresql.yaml +++ b/templates/compose/freshrss-with-postgresql.yaml @@ -1,4 +1,3 @@ -# ignore: true # documentation: https://freshrss.org/index.html # slogan: A free, self-hostable feed aggregator. # tags: rss, feed