mirror of
https://github.com/kou029w/fogtype.com
synced 2025-01-18 16:08:01 +00:00
52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
version: "3"
|
|
services:
|
|
https:
|
|
image: caddy:2.5.1-alpine@sha256:0033b34d2df3fe0bf94088c36e7d722ceca1b38cbdd49c08b2c10b9f9aa58912
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./etc/caddy:/etc/caddy
|
|
- ./srv:/srv
|
|
- caddy_data:/data
|
|
- caddy_config:/config
|
|
- minicharge_tmp:/tmp/minicharge
|
|
minicharge:
|
|
image: miniflux/miniflux:2.0.36@sha256:e2fb990dae74e16b087ac07b8518e4bd1babfa710f0243ef9cc1b7f1d2d24ba2
|
|
restart: unless-stopped
|
|
environment:
|
|
LISTEN_ADDR: /tmp/miniflux.sock
|
|
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@/postgres?host=/tmp/postgresql
|
|
RUN_MIGRATIONS: "1"
|
|
volumes:
|
|
- minicharge_tmp:/tmp
|
|
- postgres_tmp:/tmp/postgresql
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
db:
|
|
image: postgres:14.3-alpine@sha256:89bb80783bea8c0e0756a1542079fd2cb402984fc7b1f97e9a75dce79a9cd4be
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: pg_isready -U postgres
|
|
environment:
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
volumes:
|
|
- postgres_tmp:/var/run/postgresql
|
|
- postgres_data_v14:/var/lib/postgresql/data
|
|
dns.keiu.net:
|
|
image: coredns/coredns:1.9.2@sha256:27340bfb3d563684973da8222bfed30c8b38e211d39e6dc2e632d0beef4cdca0
|
|
restart: unless-stopped
|
|
expose: ["443"]
|
|
ports: ["853:853"]
|
|
volumes:
|
|
- ./etc/coredns:/etc/coredns
|
|
- caddy_data:/var/lib/caddy/data
|
|
command: "-conf /etc/coredns/Corefile"
|
|
volumes:
|
|
caddy_data:
|
|
caddy_config:
|
|
minicharge_tmp:
|
|
postgres_tmp:
|
|
postgres_data_v14:
|