mirror of
https://github.com/shishantbiswas/bknd-examples.git
synced 2026-03-01 04:31:16 +00:00
add: docker compose
This commit is contained in:
32
docker-compose.yml
Normal file
32
docker-compose.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 2G
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
expose:
|
||||
- 3000
|
||||
environment:
|
||||
DATABASE_URL: http://db:8080
|
||||
depends_on:
|
||||
- db
|
||||
healthcheck:
|
||||
test: [ "CMD", "curl", "-f", "http://localhost:3000" ]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
volumes:
|
||||
- "./data:/app/data"
|
||||
db:
|
||||
image: ghcr.io/tursodatabase/libsql-server
|
||||
volumes:
|
||||
- libsql:/var/lib/sqld
|
||||
|
||||
volumes:
|
||||
libsql:
|
||||
Reference in New Issue
Block a user