mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-11-10 09:02:52 +08:00
29 lines
661 B
YAML
29 lines
661 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
server:
|
|
image: ghcr.io/divyam234/teldrive
|
|
restart: always
|
|
container_name: teldrive
|
|
volumes:
|
|
- ./session.db:/session.db:rw
|
|
- ./config.toml:/config.toml
|
|
env_file: teldrive.env
|
|
ports:
|
|
- 8080:8080
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
db:
|
|
image: postgres:15
|
|
container_name: teldrive_db
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=teldrive
|
|
- POSTGRES_PASSWORD=secret
|
|
volumes:
|
|
- ./postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD", "pg_isready", "-U", "teldrive"]
|
|
interval: 10s
|
|
start_period: 30s
|