2021-08-25 07:51:41 +00:00
|
|
|
services:
|
2024-06-15 12:58:17 +00:00
|
|
|
piped-frontend:
|
2021-08-25 07:51:41 +00:00
|
|
|
image: 1337kavin/piped-frontend:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- piped
|
2024-06-15 12:58:17 +00:00
|
|
|
environment:
|
|
|
|
BACKEND_HOSTNAME: BACKEND_HOSTNAME_PLACEHOLDER
|
2021-08-25 07:51:41 +00:00
|
|
|
container_name: piped-frontend
|
2022-11-03 17:28:09 +00:00
|
|
|
piped-proxy:
|
|
|
|
image: 1337kavin/piped-proxy:latest
|
2021-08-25 07:51:41 +00:00
|
|
|
restart: unless-stopped
|
2022-11-03 17:28:09 +00:00
|
|
|
environment:
|
|
|
|
- UDS=1
|
2021-08-25 07:51:41 +00:00
|
|
|
volumes:
|
2022-11-03 17:28:09 +00:00
|
|
|
- piped-proxy:/app/socket
|
|
|
|
container_name: piped-proxy
|
2021-08-25 07:51:41 +00:00
|
|
|
piped:
|
|
|
|
image: 1337kavin/piped:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./config/config.properties:/app/config.properties:ro
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
container_name: piped-backend
|
2021-09-25 13:44:58 +00:00
|
|
|
nginx:
|
|
|
|
image: nginx:mainline-alpine
|
2021-08-25 07:51:41 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
2021-09-25 13:44:58 +00:00
|
|
|
- "8080:80"
|
2021-08-25 07:51:41 +00:00
|
|
|
volumes:
|
2021-09-25 13:44:58 +00:00
|
|
|
- ./config/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
|
|
- ./config/pipedapi.conf:/etc/nginx/conf.d/pipedapi.conf:ro
|
|
|
|
- ./config/pipedproxy.conf:/etc/nginx/conf.d/pipedproxy.conf:ro
|
|
|
|
- ./config/pipedfrontend.conf:/etc/nginx/conf.d/pipedfrontend.conf:ro
|
|
|
|
- ./config/ytproxy.conf:/etc/nginx/snippets/ytproxy.conf:ro
|
2022-11-03 17:28:09 +00:00
|
|
|
- piped-proxy:/var/run/ytproxy
|
2021-09-25 13:44:58 +00:00
|
|
|
container_name: nginx
|
|
|
|
depends_on:
|
|
|
|
- piped
|
2022-11-03 17:28:09 +00:00
|
|
|
- piped-proxy
|
2024-06-22 15:36:44 +00:00
|
|
|
- piped-frontend
|
2023-09-13 14:33:07 +00:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.piped.rule=Host(`FRONTEND_HOSTNAME`, `BACKEND_HOSTNAME`, `PROXY_HOSTNAME`)"
|
|
|
|
- "traefik.http.routers.piped.entrypoints=websecure"
|
|
|
|
- "traefik.http.services.piped.loadbalancer.server.port=8080"
|
2021-08-25 07:51:41 +00:00
|
|
|
postgres:
|
2024-07-11 14:53:43 +00:00
|
|
|
image: pgautoupgrade/pgautoupgrade:16-alpine
|
2021-08-25 07:51:41 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./data/db:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=piped
|
|
|
|
- POSTGRES_USER=piped
|
|
|
|
- POSTGRES_PASSWORD=changeme
|
|
|
|
container_name: postgres
|
|
|
|
watchtower:
|
|
|
|
image: containrrr/watchtower
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
environment:
|
|
|
|
- WATCHTOWER_CLEANUP=true
|
|
|
|
- WATCHTOWER_INCLUDE_RESTARTING=true
|
|
|
|
container_name: watchtower
|
2022-11-03 17:28:09 +00:00
|
|
|
command: piped-frontend piped-backend piped-proxy varnish nginx postgres watchtower
|
2021-08-25 07:51:41 +00:00
|
|
|
volumes:
|
2022-11-03 17:28:09 +00:00
|
|
|
piped-proxy: null
|