zaipline-docker-compose.yaml
· 927 B · YAML
Brut
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:latest
restart: unless-stopped
ports:
- '34582: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:
1 | services: |
2 | postgresql: |
3 | image: postgres:16 |
4 | restart: unless-stopped |
5 | env_file: |
6 | - .env |
7 | environment: |
8 | POSTGRES_USER: ${POSTGRESQL_USER:-zipline} |
9 | POSTGRES_PASSWORD: ${POSTGRESQL_PASSWORD:?POSTGRESSQL_PASSWORD is required} |
10 | POSTGRES_DB: ${POSTGRESQL_DB:-zipline} |
11 | volumes: |
12 | - pgdata:/var/lib/postgresql/data |
13 | healthcheck: |
14 | test: ['CMD', 'pg_isready', '-U', 'zipline'] |
15 | interval: 10s |
16 | timeout: 5s |
17 | retries: 5 |
18 | |
19 | zipline: |
20 | image: ghcr.io/diced/zipline:latest |
21 | restart: unless-stopped |
22 | ports: |
23 | - '34582:3000' |
24 | env_file: |
25 | - .env |
26 | environment: |
27 | - DATABASE_URL=postgres://${POSTGRESQL_USER:-zipline}:${POSTGRESQL_PASSWORD}@postgresql:5432/${POSTGRESQL_DB:-zipline} |
28 | depends_on: |
29 | - postgresql |
30 | volumes: |
31 | - './uploads:/zipline/uploads' |
32 | - './public:/zipline/public' |
33 | - './themes:/zipline/themes' |
34 | |
35 | volumes: |
36 | pgdata: |
37 |