1
0
Fork 0
mirror of https://github.com/kou029w/fogtype.com synced 2025-01-18 16:08:01 +00:00
fogtype.com/docker-compose.yml

52 lines
1.6 KiB
YAML

version: "3"
services:
https:
image: caddy:2.4.6-alpine@sha256:1659785ea84188c3ad22a6c1f96f463d167a4b81318d71f4bb6e3d37dbe73908
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.33@sha256:77726b617e71a046ea4d02890f7f4a5d43a3c774c7de073ad06bec521ae75f12
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.1-alpine@sha256:28e8ac42048c31694d443039d5adfe293f24eec7d8c0b4f88aaefcc8df1e5b72
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.8.6@sha256:5b6ec0d6de9baaf3e92d0f66cd96a25b9edbce8716f5f15dcd1a616b3abd590e
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: