diff --git a/docker-compose.aur-dev.yml b/docker-compose.aur-dev.yml index 1763f427..265ba6db 100644 --- a/docker-compose.aur-dev.yml +++ b/docker-compose.aur-dev.yml @@ -1,5 +1,4 @@ -version: "3.8" - +--- services: ca: volumes: diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 6580de30..b0961521 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -1,16 +1,10 @@ -version: "3.8" - +--- services: ca: volumes: - ./data:/data - step:/root/.step - mariadb_init: - depends_on: - mariadb: - condition: service_healthy - git: volumes: - git_data:/aurweb/aur.git @@ -21,9 +15,6 @@ services: - git_data:/aurweb/aur.git - ./data:/data - smartgit_run:/var/run/smartgit - depends_on: - mariadb: - condition: service_healthy fastapi: volumes: diff --git a/docker-compose.yml b/docker-compose.yml index 0973fc0e..0e89f907 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,4 @@ +--- # # Docker service definitions for the aurweb project. # @@ -16,8 +17,6 @@ # # Copyright (C) 2021 aurweb Development # All Rights Reserved. -version: "3.8" - services: aurweb-image: build: . @@ -107,8 +106,10 @@ services: test: "bash /docker/health/sshd.sh" interval: 3s depends_on: + mariadb: + condition: service_healthy mariadb_init: - condition: service_started + condition: service_completed_successfully volumes: - mariadb_run:/var/run/mysqld @@ -122,6 +123,9 @@ services: healthcheck: test: "bash /docker/health/smartgit.sh" interval: 3s + depends_on: + mariadb: + condition: service_healthy cgit-fastapi: image: aurweb:latest @@ -152,8 +156,10 @@ services: entrypoint: /docker/cron-entrypoint.sh command: /docker/scripts/run-cron.sh depends_on: + mariadb: + condition: service_healthy mariadb_init: - condition: service_started + condition: service_completed_successfully volumes: - ./aurweb:/aurweb/aurweb - mariadb_run:/var/run/mysqld @@ -182,6 +188,12 @@ services: condition: service_healthy cron: condition: service_started + mariadb: + condition: service_healthy + mariadb_init: + condition: service_completed_successfully + tempo: + condition: service_healthy volumes: - archives:/var/lib/aurweb/archives - mariadb_run:/var/run/mysqld