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

53 lines
1.5 KiB
YAML
Raw Normal View History

2021-07-18 19:35:25 +09:00
version: "3"
services:
https:
image: caddy:2.4.5-alpine@sha256:6f3b5ea2bfc0b28617452cd422177cc1bf67bd75dc1705cb863fd57d0b43faac
2021-07-18 19:35:25 +09:00
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./etc/caddy:/etc/caddy
2021-07-18 20:38:29 +09:00
- ./srv:/srv
2021-07-18 19:35:25 +09:00
- caddy_data:/data
- caddy_config:/config
- minicharge_tmp:/tmp/minicharge
minicharge:
image: miniflux/miniflux:2.0.33@sha256:77726b617e71a046ea4d02890f7f4a5d43a3c774c7de073ad06bec521ae75f12
2021-07-18 19:35:25 +09:00
restart: unless-stopped
environment:
LISTEN_ADDR: /tmp/miniflux.sock
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@/postgres?host=/tmp/postgresql
RUN_MIGRATIONS: "1"
2021-07-18 19:35:25 +09:00
volumes:
- minicharge_tmp:/tmp
- postgres_tmp:/tmp/postgresql
depends_on:
db:
condition: service_healthy
db:
image: postgres:14.0-alpine@sha256:70955afb994d96daf06a9fe581a06b78294f67cc80a9f14fbd37f55c2985bfff
2021-07-18 19:35:25 +09:00
restart: unless-stopped
healthcheck:
test: pg_isready
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_tmp:/var/run/postgresql
- postgres_data:/var/lib/postgresql/data
2021-08-18 19:26:59 +09:00
dns.keiu.net:
image: coredns/coredns:1.8.5@sha256:43a9f52f5dce39bf1816afe6141724cc2d08811e466dd46e6628c925e2419bdc
2021-08-18 19:26:59 +09:00
restart: unless-stopped
expose: ["443"]
2021-08-18 21:08:20 +09:00
ports: ["853:853"]
2021-08-18 19:26:59 +09:00
volumes:
2021-08-18 23:58:07 +09:00
- ./etc/coredns:/etc/coredns
2021-08-18 19:26:59 +09:00
- caddy_data:/var/lib/caddy/data
2021-08-18 23:58:07 +09:00
command: "-conf /etc/coredns/Corefile"
2021-07-18 19:35:25 +09:00
volumes:
caddy_data:
caddy_config:
minicharge_tmp:
postgres_tmp:
postgres_data: