mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-09 16:49:51 +08:00
chore: Update Docker volumes in docker-compose files
This commit is contained in:
parent
293e545ae9
commit
5a668b8afd
2 changed files with 3 additions and 8 deletions
|
@ -7,7 +7,7 @@ services:
|
||||||
container_name: teldrive
|
container_name: teldrive
|
||||||
volumes:
|
volumes:
|
||||||
- ./teldrive.db:/teldrive.db:rw
|
- ./teldrive.db:/teldrive.db:rw
|
||||||
- ./logs:/logs:rw
|
- ./config.toml:/config.toml
|
||||||
env_file: teldrive.env
|
env_file: teldrive.env
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
|
@ -22,12 +22,8 @@ services:
|
||||||
- POSTGRES_USER=teldrive
|
- POSTGRES_USER=teldrive
|
||||||
- POSTGRES_PASSWORD=secret
|
- POSTGRES_PASSWORD=secret
|
||||||
volumes:
|
volumes:
|
||||||
- teldrive_db:/var/lib/postgresql/data
|
- ./postgres_data:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "pg_isready", "-U", "teldrive"]
|
test: ["CMD", "pg_isready", "-U", "teldrive"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
start_period: 30s
|
start_period: 30s
|
||||||
|
|
||||||
volumes:
|
|
||||||
teldrive_db:
|
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ services:
|
||||||
container_name: teldrive
|
container_name: teldrive
|
||||||
volumes:
|
volumes:
|
||||||
- ./teldrive.db:/teldrive.db:rw
|
- ./teldrive.db:/teldrive.db:rw
|
||||||
- ./logs:/logs:rw
|
- ./config.toml:/config.toml
|
||||||
env_file: teldrive.env
|
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
|
|
Loading…
Reference in a new issue