zipline/docker-compose.yml

37 lines
830 B
YAML
Raw Normal View History

2021-06-23 11:20:20 -07:00
version: '3'
services:
postgres:
image: postgres
restart: always
environment:
2021-06-23 11:20:20 -07:00
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DATABASE=postgres
volumes:
2021-06-23 11:20:20 -07:00
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
zipline:
2022-07-13 04:32:52 +00:00
image: ghcr.io/diced/zipline
2021-06-23 11:20:20 -07:00
ports:
- '3000:3000'
restart: always
environment:
2022-07-13 04:32:52 +00:00
- CORE_HTTPS=false
- CORE_SECRET=changethis
- CORE_HOST=0.0.0.0
- CORE_PORT=3000
- CORE_DATABASE_URL=postgres://postgres:postgres@postgres/postgres
- CORE_LOGGER=true
2021-06-23 11:20:20 -07:00
volumes:
2022-07-13 04:32:52 +00:00
- './uploads:/zipline/uploads'
2021-06-23 11:20:20 -07:00
- '$PWD/public:/zipline/public'
depends_on:
- 'postgres'
volumes:
pg_data: