2023-11-07 11:51:09 +08:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
2024-02-09 21:12:13 +08:00
|
|
|
image: ghcr.io/divyam234/teldrive
|
2023-11-07 11:51:09 +08:00
|
|
|
restart: always
|
|
|
|
container_name: teldrive
|
|
|
|
volumes:
|
2024-02-13 17:55:13 +08:00
|
|
|
- ./session.db:/session.db:rw
|
2024-02-13 04:50:10 +08:00
|
|
|
- ./config.toml:/config.toml
|
2023-11-07 11:51:09 +08:00
|
|
|
env_file: teldrive.env
|
|
|
|
ports:
|
|
|
|
- 8080:8080
|
2024-01-25 00:14:32 +08:00
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2023-11-07 11:51:09 +08:00
|
|
|
db:
|
|
|
|
image: postgres:15
|
|
|
|
container_name: teldrive_db
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=teldrive
|
|
|
|
- POSTGRES_PASSWORD=secret
|
|
|
|
volumes:
|
2024-02-13 04:50:10 +08:00
|
|
|
- ./postgres_data:/var/lib/postgresql/data
|
2023-11-07 11:51:09 +08:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "pg_isready", "-U", "teldrive"]
|
|
|
|
interval: 10s
|
|
|
|
start_period: 30s
|