Advertisement
Guest User

piped-docker-compose.yaml

a guest
Oct 22nd, 2023
1,873
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.57 KB | None | 0 0
  1. version: "3"
  2.  
  3. services:
  4.     pipedfrontend:
  5.         image: 1337kavin/piped-frontend:latest
  6.         restart: unless-stopped
  7.         depends_on:
  8.            - piped
  9.         container_name: piped-frontend
  10.         entrypoint: ash -c 'sed -i s/pipedapi.kavin.rocks/ytapi.mydomain.tld/g /usr/share/nginx/html/assets/* && /docker-entrypoint.sh && nginx -g "daemon off;"'
  11.     piped-proxy:
  12.         image: 1337kavin/piped-proxy:latest
  13.         restart: unless-stopped
  14.         environment:
  15.            - UDS=1
  16.         volumes:
  17.            - piped-proxy:/app/socket
  18.         container_name: piped-proxy
  19.     piped:
  20.         image: 1337kavin/piped:latest
  21.         restart: unless-stopped
  22.         volumes:
  23.            - ./config/config.properties:/app/config.properties:ro
  24.         depends_on:
  25.            - postgres
  26.         container_name: piped-backend
  27.     nginx:
  28.         image: nginx:mainline-alpine
  29.         restart: unless-stopped
  30.         ports:
  31.            - "3001:80"
  32.         volumes:
  33.            - ./config/nginx.conf:/etc/nginx/nginx.conf:ro
  34.             - ./config/pipedapi.conf:/etc/nginx/conf.d/pipedapi.conf:ro
  35.             - ./config/pipedproxy.conf:/etc/nginx/conf.d/pipedproxy.conf:ro
  36.             - ./config/pipedfrontend.conf:/etc/nginx/conf.d/pipedfrontend.conf:ro
  37.             - ./config/ytproxy.conf:/etc/nginx/snippets/ytproxy.conf:ro
  38.             - piped-proxy:/var/run/ytproxy
  39.         container_name: nginx
  40.         depends_on:
  41.            - piped
  42.             - piped-proxy
  43.             - pipedfrontend
  44.         labels:
  45.            - "traefik.enable=true"
  46.             - "traefik.http.routers.piped.rule=Host(`yt.mydomain.tld`, `ytapi.mydomain.tld`, `ytproxy.okello.io`)"
  47.             - "traefik.http.routers.piped.entrypoints=websecure"
  48.             - "traefik.http.services.piped.loadbalancer.server.port=8080"
  49.     postgres:
  50.         image: postgres:15
  51.         restart: unless-stopped
  52.         volumes:
  53.            - ./data/db:/var/lib/postgresql/data
  54.         environment:
  55.            - POSTGRES_DB=piped
  56.             - POSTGRES_USER=piped
  57.             - POSTGRES_PASSWORD=degoogled
  58.         container_name: postgres
  59.     watchtower:
  60.         image: containrrr/watchtower
  61.         restart: always
  62.         volumes:
  63.            - /var/run/docker.sock:/var/run/docker.sock
  64.             - /etc/timezone:/etc/timezone:ro
  65.         environment:
  66.            - WATCHTOWER_CLEANUP=true
  67.             - WATCHTOWER_INCLUDE_RESTARTING=true
  68.         container_name: watchtower
  69.         command: piped-frontend piped-backend piped-proxy varnish nginx postgres watchtower
  70. volumes:
  71.     piped-proxy: null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement