rallly/docker-compose.yml
Matthew Precious 8aa63acf93
Move prisma command to Dockerfile (#270)
This is required for a successful startup, so this makes it the
default command rather than requiring it to be overridden in the
compose file.

Co-authored-by: Luke Vella <me@lukevella.com>
2022-08-01 11:36:34 +01:00

28 lines
559 B
YAML

version: "3.3"
services:
rallly_db:
image: postgres:14.2
restart: always
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
rallly:
build:
context: .
args:
- DATABASE_URL=postgres://postgres:postgres@rallly_db:5432/db?pgbouncer=true
restart: always
depends_on:
- rallly_db
ports:
- 3000:3000
environment:
- DATABASE_URL=postgres://postgres:postgres@rallly_db:5432/db
env_file:
- .env
volumes:
db-data:
driver: local