diff --git a/docker-compose.d/Networking/caddy.yml b/docker-compose.d/Networking/caddy.yml index 9391ffb..811d089 100644 --- a/docker-compose.d/Networking/caddy.yml +++ b/docker-compose.d/Networking/caddy.yml @@ -13,6 +13,7 @@ services: - caddy_set:/etc/caddy - caddy_srv:/srv - caddy_data:/data + - piped-proxy:/var/run/ytproxy - caddy_config:/config networks: - caddy diff --git a/docker-compose.d/piped.yml b/docker-compose.d/piped.yml new file mode 100644 index 0000000..0e2253e --- /dev/null +++ b/docker-compose.d/piped.yml @@ -0,0 +1,76 @@ +services: + piped-frontend: + image: 1337kavin/piped-frontend:latest + restart: unless-stopped + depends_on: + - piped-backend + environment: + BACKEND_HOSTNAME: pipedapi.mintyserver.net + container_name: piped-frontend + networks: + - caddy + + piped-proxy: + image: 1337kavin/piped-proxy:latest + restart: unless-stopped + environment: + - UDS=1 + volumes: + - piped-proxy:/app/socket + container_name: piped-proxy + networks: + - caddy + + piped-backend: + image: 1337kavin/piped:latest + restart: unless-stopped + volumes: + - /etc/piped/config.properties:/app/config.properties + depends_on: + - postgres-piped + container_name: piped-backend + networks: + - piped + - caddy + + piped-nginx: + image: nginx:mainline-alpine + restart: unless-stopped + volumes: + - piped-nginx:/etc/nginx + #- ./config/nginx.conf:/etc/nginx/nginx.conf:ro + #- ./config/pipedapi.conf:/etc/nginx/conf.d/pipedapi.conf:ro + container_name: piped-nginx + depends_on: + - piped-backend + networks: + - caddy + + postgres-piped: + image: pgautoupgrade/pgautoupgrade:16-alpine + restart: unless-stopped + volumes: + - piped-db:/var/lib/postgresql/data + environment: + - POSTGRES_DB=piped + - POSTGRES_USER=piped + - POSTGRES_PASSWORD=${PASS} + container_name: postgres-piped + networks: + - piped + +volumes: + piped-proxy: null + piped-db: + external: true + piped-nginx: + external: true + piped-config: + external: true + +networks: + caddy: + external: true + piped: + external: true + diff --git a/scripts/run-all.sh b/scripts/run-all.sh index 6895ba4..25cbad0 100755 --- a/scripts/run-all.sh +++ b/scripts/run-all.sh @@ -25,6 +25,7 @@ services=( "Tools/qbit.yml" "Tools/open-webui.yml" "pterodactyl/docker-compose.yml" + "Piped-Docker/docker-compose.yml" ) # Start building the docker compose command with multiple -f flags @@ -36,7 +37,7 @@ for service in "${services[@]}"; do done # Add the up command to the final docker compose command -COMPOSE_COMMAND+=" up -d" +COMPOSE_COMMAND+=" --profile panel --profile daemon up -d" # Execute the composed command eval $COMPOSE_COMMAND