Some checks failed
Deploy Encrypted Todo App / build-and-push (push) Has been cancelled
39 lines
756 B
YAML
39 lines
756 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
build: .
|
|
container_name: encrypted-todo-app
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- SQLITE_DB_PATH=/app/data/db.db
|
|
- PORT=3000
|
|
volumes:
|
|
- todo_data:/app/data
|
|
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
|