This commit is contained in:
@ -1,38 +1,9 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
container_name: encrypted-todo-app
|
||||
image: ${IMAGE}
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "${APP_PORT}:3000"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- SQLITE_DB_PATH=/app/data/db.db
|
||||
- PORT=3000
|
||||
volumes:
|
||||
- todo_data:/app/data
|
||||
NODE_ENV: production
|
||||
SQLITE_DB_PATH: ${SQLITE_DB_PATH}
|
||||
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
|
||||
|
Reference in New Issue
Block a user