sub2api部署
直接使用docker-compose搞定,如下:
services:
sub2api:
image: ccr.ccs.tencentyun.com/workimage/weishaw-sub2api:latest
ports:
- "8080:8080"
environment:
- DATABASE_URL=postgres://postgres:Postgres1234@db:5432/sub2api?sslmode=disable
- REDIS_URL=redis://redis:6379
depends_on:
- db
- redis
db:
image: ccr.ccs.tencentyun.com/workimage/postgres:15-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=Postgres1234
- POSTGRES_DB=sub2api
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: ccr.ccs.tencentyun.com/workimage/redis:7-alpine
volumes:
- redis_data:/data
volumes:
postgres_data:
redis_data:


