This commit is contained in:
@ -1,38 +1,9 @@
|
|||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
build: .
|
image: ${IMAGE}
|
||||||
container_name: encrypted-todo-app
|
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "${APP_PORT}:3000"
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
NODE_ENV: production
|
||||||
- SQLITE_DB_PATH=/app/data/db.db
|
SQLITE_DB_PATH: ${SQLITE_DB_PATH}
|
||||||
- PORT=3000
|
|
||||||
volumes:
|
|
||||||
- todo_data:/app/data
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
|
||||||
test:
|
|
||||||
[
|
|
||||||
"CMD",
|
|
||||||
"wget",
|
|
||||||
"--quiet",
|
|
||||||
"--tries=1",
|
|
||||||
"--spider",
|
|
||||||
"http://localhost:3000/api/users",
|
|
||||||
]
|
|
||||||
timeout: 10s
|
|
||||||
interval: 30s
|
|
||||||
retries: 5
|
|
||||||
start_period: 40s
|
|
||||||
labels:
|
|
||||||
- "com.docker.compose.project=encrypted-todo"
|
|
||||||
- "description=Encrypted Todo List Application"
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
todo_data:
|
|
||||||
driver: local
|
|
||||||
todo_data_dev:
|
|
||||||
driver: local
|
|
||||||
|
@ -251,7 +251,7 @@ app.patch("/api/users/:userId/todos/:todoGroupId", (req, res) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const PORT = process.env.PORT || 3000;
|
const PORT = 3000;
|
||||||
server.listen(PORT, () => {
|
server.listen(PORT, () => {
|
||||||
console.log(`Server running on port ${PORT}`);
|
console.log(`Server running on port 3000`);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user