MisterFixx revised this gist . Go to revision
1 file changed, 36 insertions
zaipline-docker-compose.yaml(file created)
| @@ -0,0 +1,36 @@ | |||
| 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: | |
Newer
Older