30 lines
618 B
YAML
30 lines
618 B
YAML
|
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/
|
||
|
command: run --allow-net --allow-env --allow-read --watch src/main.ts
|
||
|
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:
|