mirror of
https://github.com/woodchen-ink/random-api-go.git
synced 2025-07-18 05:42:01 +08:00
- Removed unnecessary volume mounts for public and logs in docker-compose.yml. - Updated Dockerfile to create necessary directories under /root/data. - Modified start.sh to copy files to the new public directory location. - Enhanced config.go to create default configuration and directory structure if not present. - Adjusted router.go to serve static files from the new public directory path.
13 lines
306 B
YAML
13 lines
306 B
YAML
services:
|
|
random-api-go:
|
|
container_name: random-api-go
|
|
image: woodchen/random-api-go:latest
|
|
ports:
|
|
- "5003:5003"
|
|
volumes:
|
|
- ./data:/root/data
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
- BASE_URL=https://github-file.czl.net/random-api.czl.net
|
|
restart: unless-stopped
|