2024-12-17 18:15:21 +01:00
|
|
|
services:
|
|
|
|
app:
|
|
|
|
image: denoland/deno:latest
|
|
|
|
working_dir: /app
|
|
|
|
ports:
|
|
|
|
- 8000:8000
|
|
|
|
environment:
|
|
|
|
DATABASE_URL: postgres://nodarium:nodarium@db:5432/nodarium
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
- deno-cache:/deno-dir/
|
2024-12-19 15:09:17 +01:00
|
|
|
command: task dev
|
2024-12-17 18:15:21 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:latest
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: nodarium
|
|
|
|
POSTGRES_PASSWORD: nodarium
|
|
|
|
POSTGRES_DB: nodarium
|
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
volumes:
|
|
|
|
- postgres-data:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres-data:
|
|
|
|
deno-cache:
|