mirror of
https://github.com/shishantbiswas/bknd-examples.git
synced 2026-02-27 12:01:16 +00:00
26 lines
489 B
YAML
26 lines
489 B
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
deploy:
|
|
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
|
|
db:
|
|
image: ghcr.io/tursodatabase/libsql-server
|
|
volumes:
|
|
- libsql:/var/lib/sqld
|
|
|
|
volumes:
|
|
libsql: |