Parent directory

compose.yaml

913 bytes
 1---
 2name: ytrssil
 3services:
 4  postgres:
 5    image: postgres:18
 6    restart: unless-stopped
 7    environment:
 8      POSTGRES_PASSWORD: ytrssil
 9      POSTGRES_USER: ytrssil
10      POSTGRES_DB: ytrssil
11    ports:
12      - 5432:5432
13    volumes:
14      - postgres:/var/lib/postgresql
15    healthcheck:
16      test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
17      interval: 5s
18      timeout: 2s
19      retries: 5
20
21  api:
22    image: theedgeofrage/ytrssil:api
23    restart: unless-stopped
24    depends_on:
25      - postgres
26    environment:
27      DB_URI: "postgresql://ytrssil:ytrssil@postgres/ytrssil?sslmode=disable"
28      PORT: "80"
29      AUTH_TOKEN: arstneio
30      YOUTUBE_API_KEY: AIzaSyC4sbyIWDqFt8Zk54Xq2L1Ncekysky8fAk
31      YTDLP_COOKIES_FILE: /cookies
32    ports:
33      - "8081:80"
34    volumes:
35      - data:/var/lib/ytrssil
36      - /home/pavle/cookies.txt:/cookies
37
38volumes:
39  postgres:
40  data: