2021-08-25 07:51:41 +00:00
|
|
|
services:
|
|
|
|
pipedfrontend:
|
|
|
|
image: 1337kavin/piped-frontend:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- piped
|
|
|
|
container_name: piped-frontend
|
2022-01-12 22:52:03 +00:00
|
|
|
entrypoint: ash -c 'sed -i s/pipedapi.kavin.rocks/BACKEND_HOSTNAME/g
|
|
|
|
/usr/share/nginx/html/assets/* && /docker-entrypoint.sh && nginx -g
|
|
|
|
"daemon off;"'
|
2021-08-25 07:51:41 +00:00
|
|
|
ytproxy:
|
|
|
|
image: 1337kavin/ytproxy:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ytproxy:/app/socket
|
|
|
|
container_name: ytproxy
|
|
|
|
piped:
|
|
|
|
image: 1337kavin/piped:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./config/config.properties:/app/config.properties:ro
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
container_name: piped-backend
|
|
|
|
varnish:
|
2021-09-18 22:59:50 +00:00
|
|
|
image: varnish:7.0-alpine
|
2021-08-25 07:51:41 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./config/default.vcl:/etc/varnish/default.vcl:ro
|
|
|
|
container_name: varnish
|
|
|
|
depends_on:
|
|
|
|
- piped
|
2021-10-05 16:58:05 +00:00
|
|
|
healthcheck:
|
2022-01-12 22:52:03 +00:00
|
|
|
test: ash -c "wget --no-verbose --tries=1 --spider
|
|
|
|
127.0.0.1:80/trending?region=US || (varnishreload && exit 1)"
|
2021-10-05 16:58:05 +00:00
|
|
|
interval: 10s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 1
|
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
|
2021-08-25 07:51:41 +00:00
|
|
|
- ytproxy:/var/run/ytproxy
|
2021-09-25 13:44:58 +00:00
|
|
|
container_name: nginx
|
|
|
|
depends_on:
|
|
|
|
- piped
|
|
|
|
- varnish
|
|
|
|
- ytproxy
|
|
|
|
- pipedfrontend
|
2021-08-25 07:51:41 +00:00
|
|
|
postgres:
|
|
|
|
image: postgres:13-alpine
|
|
|
|
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
|
2021-09-25 13:44:58 +00:00
|
|
|
command: piped-frontend piped-backend ytproxy varnish nginx postgres watchtower
|
2021-08-25 07:51:41 +00:00
|
|
|
volumes:
|
2022-01-12 22:52:03 +00:00
|
|
|
ytproxy: null
|