Simplify docker-compose naming (use docker-compose.yml for local dev)
This commit is contained in:
+1
-1
@@ -7,4 +7,4 @@ apocapoc-api
|
|||||||
dist/
|
dist/
|
||||||
bin/
|
bin/
|
||||||
.internal-notes/
|
.internal-notes/
|
||||||
docker-compose.dev.yml
|
docker-compose.yml
|
||||||
|
|||||||
@@ -74,8 +74,8 @@ The API will be available at `http://localhost:8080`
|
|||||||
### Running locally with Docker (Recommended)
|
### Running locally with Docker (Recommended)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp docker-compose.dev.example.yml docker-compose.dev.yml
|
cp docker-compose.example.yml docker-compose.yml
|
||||||
docker-compose -f docker-compose.dev.yml up --build
|
docker-compose up --build
|
||||||
```
|
```
|
||||||
|
|
||||||
The API will be available at `http://localhost:8080`
|
The API will be available at `http://localhost:8080`
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user