mirror of
https://github.com/diced/zipline.git
synced 2025-04-11 23:31:17 -05:00
36 lines
785 B
YAML
Executable file
36 lines
785 B
YAML
Executable file
services:
|
|
postgres:
|
|
image: postgres:15
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DATABASE=postgres2
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ['CMD', 'pg_isready', '-U', 'postgres']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
zipline:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- '3000:3000'
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:postgres@postgres/postgres2
|
|
- CORE_HOSTNAME=0.0.0.0
|
|
depends_on:
|
|
- postgres
|
|
volumes:
|
|
- './uploads:/zipline/uploads'
|
|
- './public:/zipline/public'
|
|
- './themes:/zipline/themes'
|
|
|
|
volumes:
|
|
pgdata:
|