docker-compose.yml
· 708 B · YAML
Surowy
services:
miniflux:
image: miniflux/miniflux:latest
ports:
- "7001:8080"
depends_on:
db:
condition: service_healthy
environment:
- DATABASE_URL=postgres://miniflux:SECRET@db/miniflux?sslmode=disable
- RUN_MIGRATIONS=1
- CREATE_ADMIN=1
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=password
db:
image: postgres:15
environment:
- POSTGRES_USER=miniflux
- POSTGRES_PASSWORD=SECRET #password uguale a quella nel DATABASE_URL
volumes:
- /docker/miniflux/db:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "miniflux"]
interval: 10s
start_period: 30s
volumes:
miniflux-db:
1 | services: |
2 | miniflux: |
3 | image: miniflux/miniflux:latest |
4 | ports: |
5 | - "7001:8080" |
6 | depends_on: |
7 | db: |
8 | condition: service_healthy |
9 | environment: |
10 | - DATABASE_URL=postgres://miniflux:SECRET@db/miniflux?sslmode=disable |
11 | - RUN_MIGRATIONS=1 |
12 | - CREATE_ADMIN=1 |
13 | - ADMIN_USERNAME=admin |
14 | - ADMIN_PASSWORD=password |
15 | db: |
16 | image: postgres:15 |
17 | environment: |
18 | - POSTGRES_USER=miniflux |
19 | - POSTGRES_PASSWORD=SECRET #password uguale a quella nel DATABASE_URL |
20 | volumes: |
21 | - /docker/miniflux/db:/var/lib/postgresql/data |
22 | healthcheck: |
23 | test: ["CMD", "pg_isready", "-U", "miniflux"] |
24 | interval: 10s |
25 | start_period: 30s |
26 | volumes: |
27 | miniflux-db: |
28 |