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
2022-02-14 23:12:51 +00:00

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.35@sha256:90aa3529964b87f829da43ac377a096629be8f2fc0a57e62d04da4865f190314
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.2-alpine@sha256:174b16b3e94a74e2081c81448cbd1aac0a4670c2ea59cd6d47930217787f4c29
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.0@sha256:0f101fabf4b63883d4529435f75b1e8816dcc8915e8fa7d28aa6e50a15e9ea6a
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: