diff --git a/.gitignore b/.gitignore index a6549a2..28907e1 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ apocapoc-api dist/ bin/ .internal-notes/ -docker-compose.dev.yml +docker-compose.yml diff --git a/README.md b/README.md index faaa2e0..dde880c 100644 --- a/README.md +++ b/README.md @@ -74,8 +74,8 @@ The API will be available at `http://localhost:8080` ### Running locally with Docker (Recommended) ```bash -cp docker-compose.dev.example.yml docker-compose.dev.yml -docker-compose -f docker-compose.dev.yml up --build +cp docker-compose.example.yml docker-compose.yml +docker-compose up --build ``` The API will be available at `http://localhost:8080` diff --git a/docker-compose.dev.example.yml b/docker-compose.dev.yml similarity index 100% rename from docker-compose.dev.example.yml rename to docker-compose.dev.yml diff --git a/docker-compose.example.yml b/docker-compose.example.yml new file mode 100644 index 0000000..f94d8f2 --- /dev/null +++ b/docker-compose.example.yml @@ -0,0 +1,15 @@ +services: + api: + build: . + ports: + - "8080:8080" + environment: + - DB_PATH=/data/apocapoc.db + - JWT_SECRET=dev-secret-key-change-in-production + - JWT_EXPIRY=24h + - REFRESH_TOKEN_EXPIRY=168h + - CORS_ORIGINS=* + - DEFAULT_TIMEZONE=UTC + volumes: + - ./data:/data + restart: unless-stopped