diff --git a/.gitignore b/.gitignore index 8a75fc2..8bb5765 100755 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ config/.env.development config/.env.test config/.env.production config/.env.test +.env .env.development .env.test .env.production diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml deleted file mode 100644 index 33fbc8d..0000000 --- a/docker-compose-dev.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: "3.8" -services: - app: - build: - context: . - dockerfile: Dockerfile - container_name: mydrive - volumes: - - /path/to/data:/data/ - - /path/to/temp:/temp/ - ports: - - "${HTTP_PORT:-3000}:3000" - - "${HTTPS_PORT:-8080}:8080" - env_file: - - .env # Copy .env.example to .env.development or .env and fill in the values \ No newline at end of file diff --git a/docker-compose-test.yml b/docker-compose-test.yml new file mode 100644 index 0000000..85073fe --- /dev/null +++ b/docker-compose-test.yml @@ -0,0 +1,25 @@ +version: "3.8" +services: + app: + build: + context: . + dockerfile: Dockerfile + container_name: mydrive + volumes: + # Use the following volumes section if you want to use bind mounts: + # - /path/to/data:/data/ + # - /path/to/temp:/temp/ + + # Use the following volumes section if you want to use named volumes: + - mydrive-data:/data/ + - mydrive-temp:/temp/ + ports: + - "${HTTP_PORT:-3000}:3000" + - "${HTTPS_PORT:-8080}:8080" + env_file: + - .env.test # Copy .env.example to .env.test or .env and fill in the values + +# Use the following volumes section if you want to use named volumes. Useful for development. +volumes: + mydrive-data: + mydrive-temp: \ No newline at end of file