mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-28 17:56:37 +02:00
29 lines
621 B
YAML
29 lines
621 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
|
|
command: sh -c "yarn prisma migrate deploy && yarn start"
|
|
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
|