603ffbc426
* docs: add supabase guide * feat: add support for external connection poolers * chore: use .env symlink in database package * chore: remove database .env.example * docs: finish supabase pooling section * docs: fix small typo * docs: replace prisma with app wording * docs: fix up supabase pooling section * fix: deleted too much in contributing docs * docs: change pooling heading * docs: reduce linux shaming * docs: include direct connection url in fly.io
42 lines
853 B
YAML
42 lines
853 B
YAML
version: "3"
|
|
|
|
volumes:
|
|
database-data:
|
|
|
|
networks:
|
|
app_network:
|
|
external: false
|
|
|
|
services:
|
|
db:
|
|
container_name: db
|
|
image: postgres:14
|
|
restart: always
|
|
volumes:
|
|
- database-data:/var/lib/postgresql/data/
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: postgres
|
|
networks:
|
|
- app_network
|
|
ports:
|
|
- 5432:5432
|
|
app:
|
|
build:
|
|
context: ../
|
|
dockerfile: ./docker/Dockerfile
|
|
ports:
|
|
- 3030:3030
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres?schema=public
|
|
DIRECT_URL: postgres://postgres:postgres@db:5432/postgres?schema=public
|
|
SESSION_SECRET: secret123
|
|
MAGIC_LINK_SECRET: secret123
|
|
REMIX_APP_PORT: 3030
|
|
PORT: 3030
|
|
networks:
|
|
- app_network
|