mirror of
https://github.com/zoriya/tide.git
synced 2025-12-05 22:56:12 +00:00
31 lines
484 B
YAML
31 lines
484 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
api:
|
|
build: ./api
|
|
restart: on-failure
|
|
env_file:
|
|
- .env
|
|
|
|
aria2:
|
|
build: ./aria2
|
|
restart: on-failure
|
|
env_file:
|
|
- .env
|
|
|
|
postgres:
|
|
image: postgres:15
|
|
restart: on-failure
|
|
env_file:
|
|
- ./.env
|
|
volumes:
|
|
- db:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
db:
|