Update docker-compose.yml
This commit is contained in:
parent
ed38dd852d
commit
76eb8f3413
@ -5,14 +5,16 @@ services:
|
|||||||
image: ghcr.io/songquanpeng/one-api:latest
|
image: ghcr.io/songquanpeng/one-api:latest
|
||||||
container_name: one-api
|
container_name: one-api
|
||||||
restart: always
|
restart: always
|
||||||
|
command: --log-dir /app/logs
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- /path/to/one-api:/data
|
- /home/ubuntu/data/one-api:/data
|
||||||
# environment:
|
- /home/ubuntu/data/one-api/logs:/app/logs
|
||||||
|
# environment:
|
||||||
# REDIS_CONN_STRING: redis://default:redispw@localhost:49153
|
# REDIS_CONN_STRING: redis://default:redispw@localhost:49153
|
||||||
# SESSION_SECRET: random_string
|
# SESSION_SECRET: random_string
|
||||||
# SQL_DSN: root:123456@tcp(localhost:3306)/one-api
|
# SQL_DSN: root:123456@tcp(localhost:3306)/one-api
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:3000/healthz"]
|
test: ["CMD", "curl", "-f", "http://localhost:3000/healthz"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
Loading…
Reference in New Issue
Block a user