From 45d70c93316f8c3d593724e414f01a737954e67f Mon Sep 17 00:00:00 2001 From: nickatnight Date: Sat, 14 Sep 2024 10:57:54 -0700 Subject: [PATCH] chore: remove deprecated 'version' from compose files [#44] --- {{ cookiecutter.project_slug }}/docker-compose.yml | 2 -- {{ cookiecutter.project_slug }}/ops/docker-compose.prod.yml | 2 -- .../ops/docker-compose.staging.yml | 2 -- {{ cookiecutter.project_slug }}/ops/docker-compose.test.yml | 4 ---- 4 files changed, 10 deletions(-) diff --git a/{{ cookiecutter.project_slug }}/docker-compose.yml b/{{ cookiecutter.project_slug }}/docker-compose.yml index 2420cf3..93312c0 100644 --- a/{{ cookiecutter.project_slug }}/docker-compose.yml +++ b/{{ cookiecutter.project_slug }}/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3' - volumes: base-data: {{ cookiecutter.db_container_name }}-data: diff --git a/{{ cookiecutter.project_slug }}/ops/docker-compose.prod.yml b/{{ cookiecutter.project_slug }}/ops/docker-compose.prod.yml index 9541daf..80667dc 100644 --- a/{{ cookiecutter.project_slug }}/ops/docker-compose.prod.yml +++ b/{{ cookiecutter.project_slug }}/ops/docker-compose.prod.yml @@ -1,5 +1,3 @@ -version: '3.4' - x-fastapi-envs: &fastapi_envs environment: - PROJECT_NAME={{ cookiecutter.project_slug|replace('-', '_') }} diff --git a/{{ cookiecutter.project_slug }}/ops/docker-compose.staging.yml b/{{ cookiecutter.project_slug }}/ops/docker-compose.staging.yml index 50471f4..9c2ebfe 100644 --- a/{{ cookiecutter.project_slug }}/ops/docker-compose.staging.yml +++ b/{{ cookiecutter.project_slug }}/ops/docker-compose.staging.yml @@ -1,5 +1,3 @@ -version: '3.4' - x-fastapi-envs: &fastapi_envs environment: - PROJECT_NAME={{ cookiecutter.project_slug|replace('-', '_') }} diff --git a/{{ cookiecutter.project_slug }}/ops/docker-compose.test.yml b/{{ cookiecutter.project_slug }}/ops/docker-compose.test.yml index bc68fd5..3622dff 100644 --- a/{{ cookiecutter.project_slug }}/ops/docker-compose.test.yml +++ b/{{ cookiecutter.project_slug }}/ops/docker-compose.test.yml @@ -1,7 +1,3 @@ ---- - -version: '3.7' - services: backend: build: