mirror of
https://github.com/diced/zipline.git
synced 2025-05-10 18:05:54 +02:00
39 lines
1.1 KiB
YAML
Executable file
39 lines
1.1 KiB
YAML
Executable file
services:
|
|
postgresql:
|
|
image: postgres:16
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRESQL_USER:-zipline}
|
|
POSTGRES_PASSWORD: ${POSTGRESQL_PASSWORD:?POSTGRESSQL_PASSWORD is required}
|
|
POSTGRES_DB: ${POSTGRESQL_DB:-zipline}
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ['CMD', 'pg_isready', '-U', 'zipline']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
zipline:
|
|
image: ghcr.io/diced/zipline:v4
|
|
# ATTENTION !
|
|
# entrypoint: ['pnpm', 'db:prototype']
|
|
# Uncomment the above for the first run, then comment it out again after it runs once.
|
|
# The database is subject to change, this will reset the current db to match the prisma schema.
|
|
ports:
|
|
- '3000:3000'
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- DATABASE_URL=postgres://${POSTGRESQL_USER:-zipline}:${POSTGRESQL_PASSWORD}@postgresql:5432/${POSTGRESQL_DB:-zipline}
|
|
depends_on:
|
|
- postgresql
|
|
volumes:
|
|
- './uploads:/zipline/uploads'
|
|
- './public:/zipline/public'
|
|
- './themes:/zipline/themes'
|
|
|
|
volumes:
|
|
pgdata:
|