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.5 KiB
YAML

version: "3"
services:
https:
image: caddy:2.4.5-alpine@sha256:6f3b5ea2bfc0b28617452cd422177cc1bf67bd75dc1705cb863fd57d0b43faac
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.32@sha256:1da85593b4a68267d0e15009114351868f1cb749192c4689990855051c90a152
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:13.4-alpine@sha256:a70babcd0e8f86272c35d6efcf8070c597c1f31b3d19727eece213a09929dd55
restart: unless-stopped
healthcheck:
test: pg_isready
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_tmp:/var/run/postgresql
- postgres_data:/var/lib/postgresql/data
dns.keiu.net:
image: coredns/coredns:1.8.4@sha256:6e5a02c21641597998b4be7cb5eb1e7b02c0d8d23cce4dd09f4682d463798890
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: