Compare commits
2 commits
34c6ec0a62
...
ff554ddcb4
Author | SHA1 | Date | |
---|---|---|---|
ff554ddcb4 | |||
70a84ba1b4 |
1 changed files with 54 additions and 0 deletions
|
@ -0,0 +1,54 @@
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
devcontainer:
|
||||||
|
container_name: devcontainer
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
container_name: zipline-database
|
||||||
|
image: postgres:16
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: zipline
|
||||||
|
POSTGRES_PASSWORD: zipline
|
||||||
|
POSTGRES_DATABASE: zipline
|
||||||
|
volumes:
|
||||||
|
- pg_data:/var/lib/postgresql/data
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
|
zipline:
|
||||||
|
container_name: zipline
|
||||||
|
image: ghcr.io/diced/zipline:v4
|
||||||
|
environment:
|
||||||
|
CORE_SECRET: "secret"
|
||||||
|
CORE_PORT: 3001
|
||||||
|
CORE_HOSTNAME: 0.0.0.0
|
||||||
|
DATABASE_URL: postgres://zipline:zipline@postgres:5432/zipline
|
||||||
|
DATASOURCE_TYPE: local
|
||||||
|
DATASOURCE_LOCAL_DIRECTORY: /zipline/uploads
|
||||||
|
ports:
|
||||||
|
- "3001:3001"
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- data:/zipline/public
|
||||||
|
- themes:/zipline/themes
|
||||||
|
- uploads:/zipline/uploads
|
||||||
|
depends_on:
|
||||||
|
- "postgres"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "wget -q --spider http://localhost:3001 || exit 1"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
pg_data:
|
||||||
|
data:
|
||||||
|
themes:
|
||||||
|
uploads:
|
Loading…
Add table
Reference in a new issue