learn-request-queue/docker-compose.yml

22 lines
371 B
YAML

version: '3.8'
services:
app:
container_name: lrq
build: .
depends_on:
- db
volumes:
- .:/home/app
ports:
- "80:3000"
env_file: .env
db:
container_name: lrqdb
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- ./db:/docker-entrypoint-initdb.d