52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
services:
|
|
db:
|
|
image: postgres:17-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: cents
|
|
POSTGRES_USER: cents
|
|
POSTGRES_PASSWORD: cents-dev-only
|
|
ports:
|
|
- "127.0.0.1:55432:5432"
|
|
volumes:
|
|
- cents_dev_db:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U cents -d cents"]
|
|
interval: 3s
|
|
timeout: 3s
|
|
retries: 20
|
|
|
|
frpc:
|
|
image: homemade/auto-cert/proxy:latest
|
|
restart: unless-stopped
|
|
environment:
|
|
DOMAIN: dev.cents.homemade.net.cn
|
|
APP_HOST: host.docker.internal
|
|
APP_PORT: "6064"
|
|
APP_PROTOCOL: http
|
|
FRPC_SERVER_HOST: 119.28.12.24
|
|
FRPC_SERVER_PORT: "7000"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- frp_cert_volume:/etc/letsencrypt
|
|
networks:
|
|
- frp_dev
|
|
|
|
cert:
|
|
image: homemade/auto-cert/cert:latest
|
|
restart: "no"
|
|
command: --domain dev.cents.homemade.net.cn --test-mode false
|
|
volumes:
|
|
- frp_cert_volume:/etc/letsencrypt
|
|
networks:
|
|
- frp_dev
|
|
|
|
volumes:
|
|
cents_dev_db:
|
|
frp_cert_volume:
|
|
|
|
networks:
|
|
frp_dev:
|
|
driver: bridge
|