You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
965 B
32 lines
965 B
version: '1' |
|
|
|
services: |
|
postgres: |
|
image: postgres:14.3 |
|
restart: unless-stopped |
|
volumes: |
|
- "./data/postgres:/var/lib/postgresql/data" |
|
- "./psql-docker-init:/docker-entrypoint-initdb.d" |
|
environment: |
|
POSTGRES_PASSWORD: hole_pass |
|
POSTGRES_USER: hole |
|
POSTGRES_DB: hole_v2 |
|
redis: |
|
image: redis:7.0.2 |
|
restart: unless-stopped |
|
hole-thu: |
|
image: holethu/hole-backend-rust:1.2.0 |
|
restart: unless-stopped |
|
ports: |
|
- "127.0.0.1:8000:8863" |
|
volumes: |
|
- "./data/user_files:/user_files" |
|
environment: |
|
DATABASE_URL: "postgres://hole:hole_pass@postgres/hole_v2" |
|
REDIS_URL: "redis://redis:6379" |
|
ROCKET_DATABASES: '{pg_v2={url="postgres://hole:hole_pass@postgres/hole_v2"}}' |
|
ROCKET_ADDRESS: "0.0.0.0" |
|
ROCKET_PORT: 8863 |
|
AUTH_BACKEND_URL: "<你的后端地址>" |
|
FRONTEND_WHITELIST: "<你的前端地址1>,<你的前端地址2>" |
|
UPLOAD_DIR: "/user_files"
|
|
|