mirror of
https://github.com/diced/zipline.git
synced 2025-12-05 20:40:12 -08:00
40 lines
1.0 KiB
YAML
Executable File
40 lines
1.0 KiB
YAML
Executable File
services:
|
|
postgres:
|
|
image: postgres:15
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DATABASE=postgres
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ['CMD', 'pg_isready', '-U', 'postgres']
|
|
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://postgres:postgres@postgres/postgres
|
|
- CORE_HOSTNAME=0.0.0.0
|
|
# add other needed variables like CORE_SECRET
|
|
depends_on:
|
|
- postgres
|
|
volumes:
|
|
- './uploads:/zipline/uploads'
|
|
- './public:/zipline/public'
|
|
- './themes:/zipline/themes'
|
|
|
|
volumes:
|
|
pgdata:
|